CI/CD Flashcards
1
Q
CF Template Structure
A
{ Parameters: { InstanceType: { Type: String, Default: t2.micro} }, Resources: { Web1 : { Type: AWS::EC2::Instance, Properties: { ImageId: AMI-ID, InstanceType: {Ref: InstanceType}, SecurityGroup : [{ ref: SG1}] } },
SG1 : [ { IpProtocol: tcp, FromPort: 80, ToPort: 80, CidrId: 0.0.0.0/0} ]
}
}
2
Q
Cron Scheduling
min hour day month weekday year
- 0 10 * * ? *
- 15 12 * * ? *
- 0 18 * * MON-FRI *
- 0 8 1 * * *
- 0/15 * * * * ?
- 0/5 8-17 ? * MON-FRI *
A
min hour day month weekday year
- run at every minute of the day every day
- run at 10 am utc every day
- run at 12:15 AM every day
- run at 6PM Monday to Friday
- run at 8AM 1st of month
- run every day every 15 mins
- run every 5 mins from Mon to Fri beween 8 AM to 5:55 PM