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}
     ]

}

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Cron Scheduling

  min hour day month weekday year
  1. 0 10 * * ? *
  2. 15 12 * * ? *
  3. 0 18 * * MON-FRI *
  4. 0 8 1 * * *
  5. 0/15 * * * * ?
  6. 0/5 8-17 ? * MON-FRI *
A

min hour day month weekday year

  1. run at every minute of the day every day
  2. run at 10 am utc every day
  3. run at 12:15 AM every day
  4. run at 6PM Monday to Friday
  5. run at 8AM 1st of month
  6. run every day every 15 mins
  7. run every 5 mins from Mon to Fri beween 8 AM to 5:55 PM
How well did you know this?
1
Not at all
2
3
4
5
Perfectly