recipe.yaml 942 B

123456789101112131415161718192021
  1. AWSTemplateFormatVersion: '2010-09-09'
  2. Description: Image Builder Recipe for a custom AMI with Nginx
  3. Resources:
  4. MyImageRecipe:
  5. Type: AWS::ImageBuilder::ImageRecipe
  6. Properties:
  7. Name: MyNginxRecipe
  8. Description: Recipe to build an AMI with Nginx installed
  9. Components:
  10. - ComponentArn: arn:aws:imagebuilder:us-east-1:aws:component/amazon-linux-2-nginx-install/x.x.x # Replace x.x.x with a valid version
  11. - ComponentArn: arn:aws:imagebuilder:us-east-1:aws:component/amazon-linux-2-nginx-configure/x.x.x # Replace x.x.x with a valid version
  12. ParentImage: arn:aws:imagebuilder:us-east-1:aws:image/amazon-linux-2-x86/x.x.x # Replace x.x.x with a valid version
  13. BlockDeviceMappings:
  14. - DeviceName: /dev/xvda
  15. Ebs:
  16. VolumeSize: 30
  17. VolumeType: gp2
  18. DeleteOnTermination: true
  19. Tags:
  20. Project: MyCustomAMI
  21. Application: NginxWebServer