Skip to content

Commit

Permalink
Add few fixes to minimize stack resource changes
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <divyaasm@amazon.com>
  • Loading branch information
Divyaasm committed Jan 28, 2025
1 parent e22aee3 commit 3f3c423
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/ci-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export class CIStack extends Stack {

const auditloggingS3Bucket = new CiAuditLogging(this);
const vpc = new Vpc(this, 'JenkinsVPC', {
availabilityZones: ['us-east-1a', 'us-east-1b', 'us-east-1c'],
flowLogs: {
s3: {
destination: FlowLogDestination.toS3(auditloggingS3Bucket.bucket, 'vpcFlowLogs'),
Expand Down
2 changes: 1 addition & 1 deletion lib/compute/jenkins-main-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export class JenkinsMainNode {
InitCommand.shellCommand('/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json -s'),

InitCommand.shellCommand(dataRetentionProps.dataRetention
? `mkdir /var/lib/jenkins && mount -t efs ${efsId} /var/lib/jenkins`
? `mkdir -p /var/lib/jenkins && mount -t efs ${efsId} /var/lib/jenkins`
: 'echo Data rentention is disabled, not mounting efs'),

InitFile.fromFileInline('/docker-compose.yml', join(__dirname, '../../resources/docker-compose.yml')),
Expand Down

0 comments on commit 3f3c423

Please sign in to comment.