stacks:
  - identity
regions:
  - eu-west-1
deployments:
  gateway-cloudformation:
    type: cloud-formation
    app: identity-gateway
    parameters:
      cloudFormationStackName: gateway
      amiTags:
        Recipe: gateway-arm64
        AmigoStage: PROD
      templateStagePaths:
        CODE: IdentityGateway-euwest-1-CODE.template.json
        PROD: IdentityGateway-euwest-1-PROD.template.json
      amiEncrypted: true
    dependencies:
      - update-ami
  identity-gateway:
    type: autoscaling
    dependencies:
      - gateway-cloudformation
    parameters:
      bucketSsmLookup: true
      bucketSsmKey: /account/services/identity.artifact.bucket
      prefixStack: false
  update-ami:
    type: ami-cloudformation-parameter
    parameters:
      cloudFormationStackByTags: false
      cloudFormationStackName: gateway
      amiParametersToTags:
        AMI:
          Recipe: gateway-arm64
          AmigoStage: PROD
      amiEncrypted: true
