diff --git a/blog-assets/automate-ami-builds-aws-codepipeline-D35708869/linux-ami-imagebuilder.yaml b/blog-assets/automate-ami-builds-aws-codepipeline-D35708869/linux-ami-imagebuilder.yaml index 23d9f1d..3d038f4 100644 --- a/blog-assets/automate-ami-builds-aws-codepipeline-D35708869/linux-ami-imagebuilder.yaml +++ b/blog-assets/automate-ami-builds-aws-codepipeline-D35708869/linux-ami-imagebuilder.yaml @@ -82,11 +82,11 @@ Resources: - '-' - !Ref 'AWS::StackName' Components: - - ComponentArn: !Sub 'arn:${AWS::Partition}:imagebuilder:${AWSRegion}:aws:component/amazon-cloudwatch-agent-linux/x.x.x' - - ComponentArn: !Sub 'arn:${AWS::Partition}:imagebuilder:${AWSRegion}:aws:component/aws-cli-version-2-linux/x.x.x' - - ComponentArn: !Sub 'arn:${AWS::Partition}:imagebuilder:${AWSRegion}:aws:component/stig-build-linux-high/x.x.x' - - ComponentArn: !GetAtt 'SetLocaleComponent.Arn' - ComponentArn: !GetAtt 'YumUpdateComponent.Arn' + - ComponentArn: !GetAtt 'SetLocaleComponent.Arn' + - ComponentArn: !Sub 'arn:${AWS::Partition}:imagebuilder:${AWSRegion}:aws:component/aws-cli-version-2-linux/x.x.x' + - ComponentArn: !Sub 'arn:${AWS::Partition}:imagebuilder:${AWSRegion}:aws:component/amazon-cloudwatch-agent-linux/x.x.x' + - ComponentArn: !Sub 'arn:${AWS::Partition}:imagebuilder:${AWSRegion}:aws:component/stig-build-linux-low/x.x.x' ParentImage: !Ref 'BaseImageId' Version: !Sub '${Version}' WorkingDirectory: /opt/aws/amibuilder/ @@ -190,7 +190,7 @@ Resources: Platform: Linux Version: !Sub '${Version}' Data: !Sub | - name: setlocale global + name: rpm update description: Current version - ${Version} schemaVersion: 1.0 phases: @@ -207,7 +207,7 @@ Resources: onFailure: Continue inputs: commands: - - yum update -y + - dnf update -y InstanceSecurityGroup: Type: AWS::EC2::SecurityGroup Properties: diff --git a/blog-assets/automate-ami-builds-aws-codepipeline-D35708869/stack-configuration.json b/blog-assets/automate-ami-builds-aws-codepipeline-D35708869/stack-configuration.json index d1b71d7..3e05829 100644 --- a/blog-assets/automate-ami-builds-aws-codepipeline-D35708869/stack-configuration.json +++ b/blog-assets/automate-ami-builds-aws-codepipeline-D35708869/stack-configuration.json @@ -7,6 +7,6 @@ "SSHLocation" : "0.0.0.0/0", "Architecture" : "arm64", "InstanceType" : "t4g.large", - "BaseImageId" : "ami-0331b64d8b89b4fef" + "BaseImageId" : "ami-08182e5c2a7db8405" } }