Skip to content

Latest commit

 

History

History
71 lines (54 loc) · 2.86 KB

deploy-infra.md

File metadata and controls

71 lines (54 loc) · 2.86 KB

Deploy Infra

deploy-infra.yml

Deploy the infrastructure to the specified environments.

graph TB
    START((Start))
    checkout(Checkout)
    aws-credentials-monitoring(Configure AWS Credentials for Monitoring account)
    grafana-key(Create Grafana key)
    setup-tf(Setup Terraform)
    tf-vars(Configure Terraform Variables)
    tf-apply(Apply Terraform)
    grafana-delete-key{{Delete Grafana key}}
    END((End))
    START --> checkout
    checkout --> aws-credentials-monitoring
    aws-credentials-monitoring --> grafana-key
    grafana-key --> setup-tf
    grafana-key -.-> grafana-delete-key
    setup-tf --> tf-vars
    tf-vars --> tf-apply
    tf-apply --> grafana-delete-key
    grafana-delete-key --> END
Loading

Inputs

name type description default
version string The ECR tag to deploy --
stage string The environment to deploy to --
stage-url string The URL of the environment --
grafana-workspace-name string The name of the Grafana workspace for the monitoring deployment ${{ vars.GRAFANA_WORKSPACE_NAME }}
tf-directory string The directory containing the Terraform files ${{ vars.TF_DIRECTORY }}
tf-variables string The values of the dynamic Terraform variables ``
aws-region string The AWS region to deploy to ${{ vars.AWS_REGION }}
aws-role-monitoring-arn string The ARN of the AWS role to assume do manage the monitoring stack ${{ vars.AWS_ROLE_MONITORING }}
run-label string The run label to use for the actions ubuntu-latest

Outputs

--

Permissions

Permission Level
contents read
id-token write

Repository Variables

  • AWS_REGION (only if inputs.aws-region is not set)
  • AWS_ROLE_MONITORING (only if inputs.aws-role-monitoring-arn is not set)
  • GRAFANA_WORKSPACE_NAME (only if inputs.grafana-workspace-name is not set)
  • TF_DIRECTORY (only if inputs.tf-directory is not set)

Repository Secrets

  • TF_API_TOKEN

Dependencies

--

Used By