Skip to content

Commit 39f4dc3

Browse files
authored
Chore: Fix spelling (#1081)
Fixes: #1028
1 parent 0e43bbe commit 39f4dc3

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

typescript/imagebuilder/lib/imagebuilder-stack.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ export class ImagebuilderStack extends cdk.Stack {
1212
constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
1313
super(scope, id, props);
1414

15-
// Create ImageBuilder componenet that will handle installing git in the base container image
15+
// Create ImageBuilder component that will handle installing git in the base container image
1616
const gitComponenet = new imagebuilder.CfnComponent(this, "GitComponenet", {
17-
// Prefix compoenet name with stake name for inter-environment uniqueness
17+
// Prefix component name with stack name for inter-environment uniqueness
1818
name: this.stackName + '-' + "Git",
1919
platform: "Linux",
2020
version: "1.0.0",
@@ -23,10 +23,10 @@ export class ImagebuilderStack extends cdk.Stack {
2323
'utf8'
2424
)
2525
});
26-
27-
// Create ImageBuilder componenet that will handle installing NodeJS in the base container image
26+
27+
// Create ImageBuilder component that will handle installing NodeJS in the base container image
2828
const nodejsComponenet = new imagebuilder.CfnComponent(this, "NodejsComponenet", {
29-
// Prefix compoenet name with stake name for inter-environment uniqueness
29+
// Prefix component name with stack name for inter-environment uniqueness
3030
name: this.stackName + '-' + "Nodejs",
3131
platform: "Linux",
3232
version: "1.0.0",
@@ -35,10 +35,10 @@ export class ImagebuilderStack extends cdk.Stack {
3535
'utf8'
3636
)
3737
});
38-
39-
// Create ImageBuilder componenet that will handle installing Docker in the base container image
38+
39+
// Create ImageBuilder component that will handle installing Docker in the base container image
4040
const dockerComponenet = new imagebuilder.CfnComponent(this, "DockerComponenet", {
41-
// Prefix compoenet name with stake name for inter-environment uniqueness
41+
// Prefix component name with stack name for inter-environment uniqueness
4242
name: this.stackName + '-' + "Docker",
4343
platform: "Linux",
4444
version: "1.0.2",
@@ -47,11 +47,11 @@ export class ImagebuilderStack extends cdk.Stack {
4747
'utf8'
4848
)
4949
});
50-
50+
5151
// Create the Amazon Elastic Container Registry repository that will host the resulting image(s)
5252
const ecrRepoForImageBuilderCodeCatalyst = new ecr.Repository(this, "EcrRepoForImageBuilderCodeCatalyst")
53-
54-
// Create an ImageBuilder recipe that contains the 3 compoenets
53+
54+
// Create an ImageBuilder recipe that contains the 3 components
5555
const AmazonLinux2023wGitNodeRecipe = new imagebuilder.CfnContainerRecipe(this, "AmazonLinux2023withGitAndNodeRecipe", {
5656
components: [
5757
{
@@ -66,7 +66,7 @@ export class ImagebuilderStack extends cdk.Stack {
6666
],
6767
containerType: "DOCKER",
6868
dockerfileTemplateData: "FROM {{{ imagebuilder:parentImage }}}\n{{{ imagebuilder:environments }}}\n{{{ imagebuilder:components }}}\n",
69-
// Prefix recipe name with stake name for inter-environment uniqueness
69+
// Prefix recipe name with stack name for inter-environment uniqueness
7070
name: this.stackName + '-' + "AmazonLinux2023WithGit",
7171
// Use amazon linux 2023 base image with the latest version tag indicated by /x.x.x
7272
parentImage: `arn:aws:imagebuilder:${this.region}:aws:image/amazon-linux-2023-x86-latest/x.x.x`,
@@ -77,7 +77,7 @@ export class ImagebuilderStack extends cdk.Stack {
7777
},
7878
version: "2.1.2"
7979
})
80-
80+
8181
// Create an IAM role for ImageBuilder EC2 build instances, that has the needed AWS Managed policies
8282
const iamRoleForImageBuilder = new iam.Role(this, 'EC2InstanceProfileForImageBuilder', {
8383
assumedBy: new iam.ServicePrincipal('ec2.amazonaws.com'),
@@ -102,20 +102,20 @@ export class ImagebuilderStack extends cdk.Stack {
102102
const instanceProfileForImageBuilder = new iam.InstanceProfile(this, "InstanceProfileForImageBuilder", {
103103
role: iamRoleForImageBuilder
104104
});
105-
105+
106106
// Create build infrastructure configuration that uses the instance profile
107107
const infraConfig = new imagebuilder.CfnInfrastructureConfiguration(this, "ImageBuilderInfraConfig", {
108-
// Prefix recipe name with stake name for inter-environment uniqueness
108+
// Prefix recipe name with stack name for inter-environment uniqueness
109109
name: this.stackName + '-' + "infra",
110110
instanceProfileName: instanceProfileForImageBuilder.instanceProfileName,
111111
});
112-
112+
113113
// Create a distribution config to specify where the resulting image(s) should be stored
114114
const distConfig = new imagebuilder.CfnDistributionConfiguration(this, "ImageBuilderDistConfig", {
115-
// Prefix recipe name with stake name for inter-environment uniqueness
115+
// Prefix recipe name with stack name for inter-environment uniqueness
116116
name: this.stackName + '-' + "dist",
117117
distributions: [
118-
{
118+
{
119119
// Set the target region to the same region where the current stack is deployed
120120
region: this.region!,
121121
containerDistributionConfiguration: {
@@ -128,10 +128,10 @@ export class ImagebuilderStack extends cdk.Stack {
128128
}
129129
]
130130
});
131-
131+
132132
// Create the ImageBuilder pipeline using the infrastructure, distribution, and container recipe above
133133
const imageBuilderPipeline = new imagebuilder.CfnImagePipeline(this, "AmazonLinux2023WithGitPipeline", {
134-
// Prefix recipe name with stake name for inter-environment uniqueness
134+
// Prefix recipe name with stack name for inter-environment uniqueness
135135
name: this.stackName + '-' + "AmazonLinux23WithGitPipeline",
136136
infrastructureConfigurationArn: infraConfig.attrArn,
137137
distributionConfigurationArn: distConfig.attrArn,

0 commit comments

Comments
 (0)