Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
updating base AMI image and stig level
Browse files Browse the repository at this point in the history
  • Loading branch information
henrybravo committed Apr 4, 2023
1 parent 339a632 commit dbca9a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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:
Expand All @@ -207,7 +207,7 @@ Resources:
onFailure: Continue
inputs:
commands:
- yum update -y
- dnf update -y
InstanceSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"SSHLocation" : "0.0.0.0/0",
"Architecture" : "arm64",
"InstanceType" : "t4g.large",
"BaseImageId" : "ami-0331b64d8b89b4fef"
"BaseImageId" : "ami-08182e5c2a7db8405"
}
}

0 comments on commit dbca9a9

Please sign in to comment.