Closed zelig81 closed 1 year ago
My best guess as to what is happening is a conflict on the paths, but it is a bit hard to investigate with the current info.
Are you able to share the entire terragrunt log output from the run with us? Make sure to sanitize anything sensitive.
Alternatively, can you share the directory structure along with some information about the code (how many dependencies, if you are deploying the same module multiple times, etc) so we can get a sense as to how many modules are being run?
The issue happens intermittently (I'm not providing the successful running logs as not relevant)
The command that I launch in every module: terragrunt plan-all --terragrunt-source-update --terragrunt-non-interactive --terragrunt-source ~/code/.infrastructure/tf-modules
The issue happens no matter which module I try to deploy (but I remember only failure of only aws provider installation - not sure if there were other providers as well).
```log ├── development │ ├── infrastructure │ │ └── ssm │ │ ├── rds-connection-string-experiment │ │ │ └── terragrunt.hcl │ │ ├── rds-connection-string-local │ │ │ └── terragrunt.hcl │ │ ├── rds-user-experiment-writer │ │ │ └── terragrunt.hcl │ │ └── rds-user-local │ │ └── terragrunt.hcl │ └── environment.tfvars.json ├── integration │ ├── applications │ │ ├── debezium │ │ │ └── ssm │ │ │ └── rds-user-online-debezium │ │ │ └── terragrunt.hcl │ │ └── online-app │ │ ├── lambda │ │ │ └── lambda-cognito-event-messages │ │ │ └── terragrunt.hcl │ │ └── ssm │ │ └── rds-user-online-app │ │ └── terragrunt.hcl │ ├── infrastructure │ │ ├── acm │ │ │ └── certificate │ │ │ └── terragrunt.hcl │ │ ├── cloudfront-s3-bucket │ │ │ └── online-app │ │ │ └── terragrunt.hcl │ │ ├── cognito │ │ │ └── online-app │ │ │ └── terragrunt.hcl │ │ ├── es │ │ │ └── online-app │ │ │ └── terragrunt.hcl │ │ ├── rds │ │ │ └── online │ │ │ └── terragrunt.hcl │ │ ├── route53 │ │ │ ├── private-hosted-zone │ │ │ │ └── terragrunt.hcl │ │ │ └── public-hosted-zone │ │ │ └── terragrunt.hcl │ │ ├── sg │ │ │ ├── sg-all-access-from-vpn │ │ │ │ └── terragrunt.hcl │ │ │ ├── sg-db-access-from-vpn │ │ │ │ └── terragrunt.hcl │ │ │ ├── sg-https-from-vpn │ │ │ │ └── terragrunt.hcl │ │ │ └── sg-vpc-traffic │ │ │ └── terragrunt.hcl │ │ ├── ssm │ │ │ ├── es-connection-string-online-endpoint │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-online │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-online-reader │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-online-root │ │ │ └── terragrunt.hcl │ │ └── vpc │ │ └── terragrunt.hcl │ └── environment.tfvars.json ├── production │ ├── applications │ │ ├── analysts │ │ │ └── ssm │ │ │ ├── rds-user-analytics-reader │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-analytics-writer │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-reports-reporter │ │ │ └── terragrunt.hcl │ │ ├── backoffice │ │ │ └── ssm │ │ │ └── rds-user-domain-knowledge-backoffice │ │ │ └── terragrunt.hcl │ │ ├── cdc-sync-approve │ │ │ └── ssm │ │ │ ├── rds-user-analytics-cdc-sync-approve │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-online-cdc-sync-approve │ │ │ └── terragrunt.hcl │ │ ├── debezium │ │ │ └── ssm │ │ │ ├── rds-user-analytics-debezium │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-analytics-replicator │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-domain-knowledge-debezium │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-domain-knowledge-replicator │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-online-debezium │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-online-replicator │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-reports-debezium │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-reports-replicator │ │ │ └── terragrunt.hcl │ │ ├── etl │ │ │ └── ssm │ │ │ ├── rds-user-analytics-etl │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-reports-etl │ │ │ └── terragrunt.hcl │ │ ├── event-processor │ │ │ └── ssm │ │ │ └── rds-user-analytics-event-processor │ │ │ └── terragrunt.hcl │ │ ├── facebook-data-fetcher │ │ │ └── ssm │ │ │ ├── rds-user-analytics-facebook-data-fetcher │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-reports-facebook-data-fetcher │ │ │ └── terragrunt.hcl │ │ ├── jupyter-runner │ │ │ └── ssm │ │ │ └── rds-user-analytics-jupyter-runner │ │ │ └── terragrunt.hcl │ │ ├── liquibase │ │ │ └── ssm │ │ │ ├── rds-user-online-liquibase │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-reports-liquibase │ │ │ └── terragrunt.hcl │ │ ├── mail-collector │ │ │ └── ssm │ │ │ └── rds-user-analytics-mail-collector │ │ │ └── terragrunt.hcl │ │ ├── marketing-migrator │ │ │ └── ssm │ │ │ └── rds-user-analytics-marketing-migrator │ │ │ └── terragrunt.hcl │ │ ├── monitoring │ │ │ └── ssm │ │ │ ├── rds-user-monitoring-grafana │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-monitoring-prometheus │ │ │ └── terragrunt.hcl │ │ ├── online-app │ │ │ ├── lambda │ │ │ │ └── lambda-cognito-event-messages │ │ │ │ └── terragrunt.hcl │ │ │ └── ssm │ │ │ ├── rds-user-online-analyst │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-online-app │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-online-enrichment │ │ │ └── terragrunt.hcl │ │ ├── personal │ │ │ └── ssm │ │ │ ├── rds-user-analytics-daniela │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-analytics-gabis │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-analytics-guys │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-analytics-tomers │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-analytics-tzahif │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-online-tomers │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-reports-gabis │ │ │ └── terragrunt.hcl │ │ ├── tableau │ │ │ └── ssm │ │ │ ├── ec2-user-tableau │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-analytics-tableau │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-online-tableau │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-reports-tableau │ │ │ └── terragrunt.hcl │ │ └── temp-online-migrator │ │ └── ssm │ │ └── rds-user-online-temp-online-migrator │ │ └── terragrunt.hcl │ ├── infrastructure │ │ ├── acm │ │ │ └── terragrunt.hcl │ │ ├── cloudfront-s3-bucket │ │ │ ├── media │ │ │ │ └── terragrunt.hcl │ │ │ ├── online-app │ │ │ │ └── terragrunt.hcl │ │ │ └── storybook │ │ │ └── terragrunt.hcl │ │ ├── cognito │ │ │ └── online-app │ │ │ └── terragrunt.hcl │ │ ├── msk │ │ │ ├── collection │ │ │ │ └── terragrunt.hcl │ │ │ └── online │ │ │ └── terragrunt.hcl │ │ ├── rds │ │ │ ├── analytics │ │ │ │ └── terragrunt.hcl │ │ │ ├── analytics-staging │ │ │ │ └── terragrunt.hcl │ │ │ ├── online │ │ │ │ └── terragrunt.hcl │ │ │ ├── reports │ │ │ │ └── terragrunt.hcl │ │ │ └── reports-staging │ │ │ └── terragrunt.hcl │ │ ├── s3 │ │ │ ├── novarize-age-results-production │ │ │ │ └── terragrunt.hcl │ │ │ ├── novarize-algo │ │ │ │ └── terragrunt.hcl │ │ │ └── novarize-data │ │ │ └── terragrunt.hcl │ │ ├── sg │ │ │ ├── sg-db-access-from-public │ │ │ │ └── terragrunt.hcl │ │ │ ├── sg-db-access-from-vpn │ │ │ │ └── terragrunt.hcl │ │ │ ├── sg-https-from-vpn │ │ │ │ └── terragrunt.hcl │ │ │ ├── sg-ssh-from-vpn │ │ │ │ └── terragrunt.hcl │ │ │ ├── sg-tableau-access-from-vpn │ │ │ │ └── terragrunt.hcl │ │ │ ├── sg-vpc-traffic │ │ │ │ └── terragrunt.hcl │ │ │ └── sg-web-traffic │ │ │ └── terragrunt.hcl │ │ ├── sns │ │ │ ├── topic-infrastructure-alarms-application │ │ │ │ └── terragrunt.hcl │ │ │ ├── topic-infrastructure-alarms-devops │ │ │ │ └── terragrunt.hcl │ │ │ └── topic-infrastructure-alarms-platform │ │ │ └── terragrunt.hcl │ │ ├── ssm │ │ │ ├── es-connection-string-online-endpoint │ │ │ │ └── terragrunt.hcl │ │ │ ├── kafka-connection-string-collection-brokers │ │ │ │ └── terragrunt.hcl │ │ │ ├── kafka-connection-string-online-brokers │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-analytics │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-analytics-reader │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-domain-knowledge │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-online │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-online-reader │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-reports │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-reports-reader │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-analytics-root │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-online-root │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-reports-root │ │ │ └── terragrunt.hcl │ │ └── vpc │ │ └── terragrunt.hcl │ └── environment.tfvars.json ├── shared │ ├── infrastructure │ │ ├── route53 │ │ │ └── public-hosted-zone │ │ │ └── terragrunt.hcl │ │ ├── s3 │ │ │ └── helm-charts-repo │ │ │ └── terragrunt.hcl │ │ ├── sns │ │ │ └── topic-infrastructure-alarms-devops-non-urgent │ │ │ └── terragrunt.hcl │ │ ├── tgw │ │ │ └── terragrunt.hcl │ │ └── waf │ │ └── access-from-office-only │ │ └── terragrunt.hcl │ └── environment.tfvars.json ├── staging │ ├── applications │ │ ├── analysts │ │ │ └── ssm │ │ │ ├── rds-user-analytics-reader │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-analytics-writer │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-reports-reporter │ │ │ └── terragrunt.hcl │ │ ├── cdc-sync-approve │ │ │ └── ssm │ │ │ ├── rds-user-analytics-cdc-sync-approve │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-online-cdc-sync-approve │ │ │ └── terragrunt.hcl │ │ ├── debezium │ │ │ └── ssm │ │ │ ├── rds-user-analytics-debezium │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-analytics-replicator │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-online-debezium │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-online-replicator │ │ │ └── terragrunt.hcl │ │ ├── etl │ │ │ └── ssm │ │ │ ├── rds-user-analytics-etl │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-reports-etl │ │ │ └── terragrunt.hcl │ │ ├── event-processor │ │ │ └── ssm │ │ │ └── rds-user-analytics-event-processor │ │ │ └── terragrunt.hcl │ │ ├── industry-scraper │ │ │ └── ssm │ │ │ └── rds-user-online-industry-scraper │ │ │ └── terragrunt.hcl │ │ ├── liquibase │ │ │ └── ssm │ │ │ └── rds-user-online-liquibase │ │ │ └── terragrunt.hcl │ │ ├── mail-collector │ │ │ └── ssm │ │ │ └── rds-user-analytics-mail-collector │ │ │ └── terragrunt.hcl │ │ ├── marketing-migrator │ │ │ └── ssm │ │ │ └── rds-user-analytics-marketing-migrator │ │ │ └── terragrunt.hcl │ │ ├── online-app │ │ │ ├── api │ │ │ │ └── api-online-frontend-server │ │ │ │ └── terragrunt.hcl │ │ │ ├── lambda │ │ │ │ ├── lambda-cognito-event-messages │ │ │ │ │ └── terragrunt.hcl │ │ │ │ └── lambda-online-frontend-server │ │ │ │ └── terragrunt.hcl │ │ │ └── ssm │ │ │ ├── rds-user-online-app │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-online-enrichment │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-online-industry-research │ │ │ └── terragrunt.hcl │ │ ├── personal │ │ │ └── ssm │ │ │ ├── rds-user-analytics-tzahif │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-online-daniela │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-online-israele │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-online-product-user │ │ │ └── terragrunt.hcl │ │ ├── tableau │ │ │ └── ssm │ │ │ ├── rds-user-analytics-tableau │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-online-tableau │ │ │ └── terragrunt.hcl │ │ └── temp-online-migrator │ │ └── ssm │ │ └── rds-user-online-temp-online-migrator │ │ └── terragrunt.hcl │ ├── infrastructure │ │ ├── acm │ │ │ └── certificate │ │ │ └── terragrunt.hcl │ │ ├── cloudfront-s3-bucket │ │ │ ├── media │ │ │ │ └── terragrunt.hcl │ │ │ └── online-app │ │ │ └── terragrunt.hcl │ │ ├── cognito │ │ │ └── online-app │ │ │ └── terragrunt.hcl │ │ ├── es │ │ │ └── online-app │ │ │ └── terragrunt.hcl │ │ ├── rds │ │ │ └── online │ │ │ └── terragrunt.hcl │ │ ├── route53 │ │ │ ├── private-hosted-zone │ │ │ │ └── terragrunt.hcl │ │ │ └── public-hosted-zone │ │ │ └── terragrunt.hcl │ │ ├── s3 │ │ │ └── frontend-servers │ │ │ └── terragrunt.hcl │ │ ├── sg │ │ │ ├── sg-db-access-from-vpn │ │ │ │ └── terragrunt.hcl │ │ │ ├── sg-https-from-vpn │ │ │ │ └── terragrunt.hcl │ │ │ ├── sg-ssh-from-vpn │ │ │ │ └── terragrunt.hcl │ │ │ ├── sg-vpc-traffic │ │ │ │ └── terragrunt.hcl │ │ │ └── sg-web-traffic │ │ │ └── terragrunt.hcl │ │ ├── ssm │ │ │ ├── es-connection-string-online-endpoint │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-analytics │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-analytics-reader │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-online │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-online-reader │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-reports │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-connection-string-reports-reader │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-analytics-root │ │ │ │ └── terragrunt.hcl │ │ │ ├── rds-user-online-root │ │ │ │ └── terragrunt.hcl │ │ │ └── rds-user-reports-root │ │ │ └── terragrunt.hcl │ │ └── vpc │ │ └── terragrunt.hcl │ └── environment.tfvars.json ├── README.md ├── commons.tfvars.json ├── terraform.tfstate └── terragrunt.hcl 272 directories, 172 files ```
Both modules below had been launched at the same time:
```log terragrunt plan-all --terragrunt-source-update --terragrunt-non-interactive --terragrunt-source ~/code/.infrastructure/tf-modules [terragrunt] 2020/03/10 08:52:53 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online to /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online/.terragrunt-cache [terragrunt] 2020/03/10 08:52:53 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic to /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic/.terragrunt-cache [terragrunt] 2020/03/10 08:52:53 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn to /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn/.terragrunt-cache [terragrunt] 2020/03/10 08:52:53 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public to /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public/.terragrunt-cache [terragrunt] 2020/03/10 08:52:53 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc to /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc/.terragrunt-cache [terragrunt] 2020/03/10 08:52:53 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/ssm/rds-user-online-root to /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/ssm/rds-user-online-root/.terragrunt-cache [terragrunt] 2020/03/10 08:52:53 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-application to /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-application/.terragrunt-cache [terragrunt] 2020/03/10 08:52:53 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-platform to /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-platform/.terragrunt-cache [terragrunt] 2020/03/10 08:52:53 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-devops to /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-devops/.terragrunt-cache [terragrunt] 2020/03/10 08:52:53 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-platform, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online. [terragrunt] 2020/03/10 08:52:53 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-devops, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online. [terragrunt] 2020/03/10 08:52:53 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online. [terragrunt] 2020/03/10 08:52:53 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online. [terragrunt] 2020/03/10 08:52:53 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online. [terragrunt] 2020/03/10 08:52:53 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online. [terragrunt] 2020/03/10 08:52:53 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/ssm/rds-user-online-root, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online. [terragrunt] 2020/03/10 08:52:53 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-application, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online. [terragrunt] 2020/03/10 08:52:53 Stack at /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online: => Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online (excluded: false, dependencies: [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic, /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn, /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public, /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc, /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/ssm/rds-user-online-root, /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-application, /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-platform, /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-devops]) => Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public (excluded: false, dependencies: [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc]) => Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn (excluded: false, dependencies: [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc]) => Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic (excluded: false, dependencies: [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc]) => Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-application (excluded: false, dependencies: []) => Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-devops (excluded: false, dependencies: []) => Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-platform (excluded: false, dependencies: []) => Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/ssm/rds-user-online-root (excluded: false, dependencies: []) => Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc (excluded: false, dependencies: []) [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn must wait for 1 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-platform] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-platform must wait for 0 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-platform] 2020/03/10 08:52:53 Assuming module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-platform has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-platform] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-platform has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-application] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-application must wait for 0 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-application] 2020/03/10 08:52:53 Assuming module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-application has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-application] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-application has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/ssm/rds-user-online-root] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/ssm/rds-user-online-root must wait for 0 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/ssm/rds-user-online-root] 2020/03/10 08:52:53 Assuming module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/ssm/rds-user-online-root has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public must wait for 1 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-devops] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-devops must wait for 0 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-devops] 2020/03/10 08:52:53 Assuming module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-devops has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-devops] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-devops has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online must wait for 8 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online] 2020/03/10 08:52:53 Dependency /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-platform of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online must wait on 7 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic must wait for 1 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/ssm/rds-user-online-root] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/ssm/rds-user-online-root has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online] 2020/03/10 08:52:53 Dependency /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-application of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online must wait on 6 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online] 2020/03/10 08:52:53 Dependency /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sns/topic-infrastructure-alarms-devops of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online must wait on 5 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online] 2020/03/10 08:52:53 Dependency /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/ssm/rds-user-online-root of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online must wait on 4 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc must wait for 0 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc] 2020/03/10 08:52:53 Assuming module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:52:53 Dependency /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic must wait on 0 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:52:53 Assuming module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public] 2020/03/10 08:52:53 Dependency /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public must wait on 0 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn] 2020/03/10 08:52:53 Dependency /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn must wait on 0 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn] 2020/03/10 08:52:53 Assuming module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public] 2020/03/10 08:52:53 Assuming module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public] 2020/03/10 08:52:53 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online] 2020/03/10 08:52:53 Dependency /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online must wait on 3 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online] 2020/03/10 08:52:53 Dependency /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online must wait on 2 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online] 2020/03/10 08:52:53 Dependency /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-vpn of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online must wait on 1 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online] 2020/03/10 08:52:53 Dependency /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-db-access-from-public of module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online must wait on 0 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online] 2020/03/10 08:52:53 Running module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online now [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online] 2020/03/10 08:52:53 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online] 2020/03/10 08:53:04 Module /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/rds/online has finished with an error: Hit multiple errors: exit status 1 [terragrunt] 2020/03/10 08:53:04 Error with plan: [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:52:53 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/sg/sg-vpc-traffic/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc] 2020/03/10 08:52:53 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc] 2020/03/10 08:52:53 Running command: terraform --version [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc] 2020/03/10 08:52:53 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc/.terragrunt-cache/NrUVugQkYGqezkFvRERCCJPGsAQ/3gRUExxHzVrLLhEhDG9OUe1pTTM before downloading source. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc] 2020/03/10 08:52:53 Downloading Terraform configurations from file:///Users/example/code/.infrastructure/tf-modules into /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc/.terragrunt-cache/NrUVugQkYGqezkFvRERCCJPGsAQ/3gRUExxHzVrLLhEhDG9OUe1pTTM [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc] 2020/03/10 08:52:53 Copying files from /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc into /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc/.terragrunt-cache/NrUVugQkYGqezkFvRERCCJPGsAQ/3gRUExxHzVrLLhEhDG9OUe1pTTM/rds [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc] 2020/03/10 08:52:53 Setting working directory to /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc/.terragrunt-cache/NrUVugQkYGqezkFvRERCCJPGsAQ/3gRUExxHzVrLLhEhDG9OUe1pTTM/rds [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc] 2020/03/10 08:52:53 Initializing remote state for the s3 backend [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc] 2020/03/10 08:52:54 Running command: terraform init -backend-config=encrypt=true -backend-config=key=production/infrastructure/vpc/terraform.tfstate -backend-config=kms_key_id=arn:aws:kms:[REGION]:[ACCOUNT_ID]:key/[KMS_KEY] -backend-config=region=[REGION] -backend-config=bucket=terragrunt_state_place -backend-config=dynamodb_table=terragrunt_state_place -lock-timeout=20m Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "aws" (hashicorp/aws) 2.52.0... Error installing provider "aws": mkdir .terraform: no such file or directory. Terraform analyses the configuration and state and automatically downloads plugins for the providers used. However, when attempting to download this plugin an unexpected error occurred. This may be caused if for some reason Terraform is unable to reach the plugin repository. The repository may be unreachable if access is blocked by a firewall. If automatic installation is not possible or desirable in your environment, you may alternatively manually install plugins by downloading a suitable distribution package and placing the plugin's executable file in the following directory: terraform.d/plugins/darwin_amd64 Error: mkdir .terraform: no such file or directory [terragrunt] 2020/03/10 08:53:04 Encountered the following errors: Hit multiple errors: exit status 1 ```
```log terragrunt plan-all --terragrunt-source-update --terragrunt-non-interactive --terragrunt-source ~/code/.infrastructure/tf-modules [terragrunt] 2020/03/10 08:52:58 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server to /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server/.terragrunt-cache [terragrunt] 2020/03/10 08:52:58 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic/.terragrunt-cache [terragrunt] 2020/03/10 08:52:58 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc/.terragrunt-cache [terragrunt] 2020/03/10 08:52:58 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate/.terragrunt-cache [terragrunt] 2020/03/10 08:52:58 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server to /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server/.terragrunt-cache [terragrunt] 2020/03/10 08:52:58 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server. [terragrunt] 2020/03/10 08:52:58 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server. [terragrunt] 2020/03/10 08:52:58 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server. [terragrunt] 2020/03/10 08:52:58 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server. [terragrunt] 2020/03/10 08:52:58 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers/.terragrunt-cache [terragrunt] 2020/03/10 08:52:58 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app/.terragrunt-cache [terragrunt] 2020/03/10 08:52:58 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint/.terragrunt-cache [terragrunt] 2020/03/10 08:52:58 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server. [terragrunt] 2020/03/10 08:52:58 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server. [terragrunt] 2020/03/10 08:52:58 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server. [terragrunt] 2020/03/10 08:52:58 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone/.terragrunt-cache [terragrunt] 2020/03/10 08:52:58 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate. [terragrunt] 2020/03/10 08:52:58 Setting download directory for module /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone to /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone/.terragrunt-cache [terragrunt] 2020/03/10 08:52:58 The --non-interactive flag is set. To avoid accidentally affecting external dependencies with an xxx-all command, will not run this command against module /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone, which is a dependency of module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone. [terragrunt] 2020/03/10 08:52:58 Stack at /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server: => Module /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone (excluded: false, dependencies: []) => Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server (excluded: false, dependencies: [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic, /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc, /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate, /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server]) => Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server (excluded: false, dependencies: [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic, /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc, /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers, /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app, /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint]) => Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate (excluded: false, dependencies: [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone]) => Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app (excluded: false, dependencies: [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate]) => Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone (excluded: false, dependencies: [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone]) => Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers (excluded: false, dependencies: []) => Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic (excluded: false, dependencies: [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc]) => Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint (excluded: false, dependencies: []) => Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc (excluded: false, dependencies: []) [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app must wait for 1 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers must wait for 0 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers] 2020/03/10 08:52:58 Assuming module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic must wait for 1 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server must wait for 5 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server must wait on 4 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate must wait for 1 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone must wait for 0 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone] 2020/03/10 08:52:58 Assuming module /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc must wait for 0 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc] 2020/03/10 08:52:58 Assuming module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint must wait for 0 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone must wait for 1 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc of module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic must wait on 0 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:52:58 Assuming module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server must wait for 4 dependencies to finish [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server must wait on 3 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint] 2020/03/10 08:52:58 Assuming module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server must wait on 2 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server must wait on 3 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server must wait on 2 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone of module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone must wait on 0 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:52:58 Assuming module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone of module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate must wait on 0 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:52:58 Assuming module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server must wait on 1 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server must wait on 1 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate of module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app must wait on 0 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:52:58 Assuming module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server must wait on 0 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:52:58 Assuming module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server has already been applied and skipping it [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:52:58 Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server has finished successfully! [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:52:58 Dependency /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server of module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server just finished successfully. Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server must wait on 0 more dependencies. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:52:58 Running module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server now [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:52:58 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:55:05 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server/.terragrunt-cache/Nx-Netykb6oFZzjxUgVaEQHzgLg/3gRUExxHzVrLLhEhDG9OUe1pTTM before downloading source. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:55:05 Downloading Terraform configurations from file:///Users/example/code/.infrastructure/tf-modules into /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server/.terragrunt-cache/Nx-Netykb6oFZzjxUgVaEQHzgLg/3gRUExxHzVrLLhEhDG9OUe1pTTM [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:55:05 Copying files from /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server into /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server/.terragrunt-cache/Nx-Netykb6oFZzjxUgVaEQHzgLg/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:55:05 Setting working directory to /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server/.terragrunt-cache/Nx-Netykb6oFZzjxUgVaEQHzgLg/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:55:15 Running command: terraform plan -lock-timeout=20m -var-file=/Users/example/code/.infrastructure/infra-deployment/commons.tfvars.json -var-file=/Users/example/code/.infrastructure/infra-deployment/staging/environment.tfvars.json Acquiring state lock. This may take a few moments... Refreshing Terraform state in-memory prior to plan... The refreshed state will be used to calculate this plan, but will not be persisted to local or remote state storage. data.aws_iam_policy_document.apigw_assume_role_policy: Refreshing state... ------------------------------------------------------------------------ An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: [ REDACTED AS NOT RELEVANT ] Plan: 20 to add, 0 to change, 0 to destroy. Warning: Value for undeclared variable [ REDACTED AS NOT RELEVANT ] In addition to the other similar warnings shown, 30 other variable(s) defined without being declared. ------------------------------------------------------------------------ Note: You didn't specify an "-out" parameter to save this plan, so Terraform can't guarantee that exactly these actions will be performed if "terraform apply" is subsequently run. Releasing state lock. This may take a few moments... [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:55:27 Module /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server has finished successfully! [terragrunt] 2020/03/10 08:55:27 Error with plan: [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:52:58 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc] 2020/03/10 08:52:58 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc] 2020/03/10 08:52:58 Running command: terraform --version [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc] 2020/03/10 08:52:58 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc/.terragrunt-cache/RsvRtUSEs3WzngNU_DERhmStJTI/3gRUExxHzVrLLhEhDG9OUe1pTTM before downloading source. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc] 2020/03/10 08:52:58 Downloading Terraform configurations from file:///Users/example/code/.infrastructure/tf-modules into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc/.terragrunt-cache/RsvRtUSEs3WzngNU_DERhmStJTI/3gRUExxHzVrLLhEhDG9OUe1pTTM [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc] 2020/03/10 08:52:58 Copying files from /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc/.terragrunt-cache/RsvRtUSEs3WzngNU_DERhmStJTI/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc] 2020/03/10 08:52:58 Setting working directory to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc/.terragrunt-cache/RsvRtUSEs3WzngNU_DERhmStJTI/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc] 2020/03/10 08:52:58 Initializing remote state for the s3 backend [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc] 2020/03/10 08:52:59 Running command: terraform init -backend-config=kms_key_id=arn:aws:kms:[REGION]:[ACCOUNT_ID]:key/[KMS_KEY] -backend-config=region=[REGION] -backend-config=bucket=terragrunt_state_place -backend-config=dynamodb_table=terragrunt_state_place -backend-config=encrypt=true -backend-config=key=staging/infrastructure/vpc/terraform.tfstate -lock-timeout=20m Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "aws" (hashicorp/aws) 2.52.0... Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/vpc] 2020/03/10 08:53:09 Running command: terraform output -json [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:53:13 Running command: terraform --version [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:53:13 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic/.terragrunt-cache/zKdOb--6dtUzyvLNl8kr-cthznI/3gRUExxHzVrLLhEhDG9OUe1pTTM before downloading source. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:53:13 Downloading Terraform configurations from file:///Users/example/code/.infrastructure/tf-modules into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic/.terragrunt-cache/zKdOb--6dtUzyvLNl8kr-cthznI/3gRUExxHzVrLLhEhDG9OUe1pTTM [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:53:13 Copying files from /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic/.terragrunt-cache/zKdOb--6dtUzyvLNl8kr-cthznI/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:53:13 Setting working directory to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic/.terragrunt-cache/zKdOb--6dtUzyvLNl8kr-cthznI/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:53:13 Initializing remote state for the s3 backend [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:53:14 Running command: terraform init -backend-config=bucket=terragrunt_state_place -backend-config=dynamodb_table=terragrunt_state_place -backend-config=encrypt=true -backend-config=key=staging/infrastructure/sg/sg-vpc-traffic/terraform.tfstate -backend-config=kms_key_id=arn:aws:kms:[REGION]:[ACCOUNT_ID]:key/[KMS_KEY] -backend-config=region=[REGION] -lock-timeout=20m Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "aws" (hashicorp/aws) 2.52.0... Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/sg/sg-vpc-traffic] 2020/03/10 08:53:24 Running command: terraform output -json [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:53:27 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:27 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:27 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:27 Running command: terraform --version [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:27 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone/.terragrunt-cache/2M9yBsHsHnir-rWZdxecAevLf6c/3gRUExxHzVrLLhEhDG9OUe1pTTM before downloading source. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:27 Downloading Terraform configurations from file:///Users/example/code/.infrastructure/tf-modules into /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone/.terragrunt-cache/2M9yBsHsHnir-rWZdxecAevLf6c/3gRUExxHzVrLLhEhDG9OUe1pTTM [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:27 Copying files from /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone into /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone/.terragrunt-cache/2M9yBsHsHnir-rWZdxecAevLf6c/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:27 Setting working directory to /Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone/.terragrunt-cache/2M9yBsHsHnir-rWZdxecAevLf6c/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:27 Initializing remote state for the s3 backend [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:28 Running command: terraform init -backend-config=bucket=terragrunt_state_place -backend-config=dynamodb_table=terragrunt_state_place -backend-config=encrypt=true -backend-config=key=shared/infrastructure/route53/public-hosted-zone/terraform.tfstate -backend-config=kms_key_id=arn:aws:kms:[REGION]:[ACCOUNT_ID]:key/[KMS_KEY] -backend-config=region=[REGION] -lock-timeout=20m Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "aws" (hashicorp/aws) 2.52.0... Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/shared/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:37 Running command: terraform output -json [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:40 Running command: terraform --version [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:40 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone/.terragrunt-cache/6Dt7uM6VqXyf261n6UEJXPdanM0/3gRUExxHzVrLLhEhDG9OUe1pTTM before downloading source. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:40 Downloading Terraform configurations from file:///Users/example/code/.infrastructure/tf-modules into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone/.terragrunt-cache/6Dt7uM6VqXyf261n6UEJXPdanM0/3gRUExxHzVrLLhEhDG9OUe1pTTM [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:40 Copying files from /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone/.terragrunt-cache/6Dt7uM6VqXyf261n6UEJXPdanM0/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:40 Setting working directory to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone/.terragrunt-cache/6Dt7uM6VqXyf261n6UEJXPdanM0/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:40 Initializing remote state for the s3 backend [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:41 Running command: terraform init -backend-config=kms_key_id=arn:aws:kms:[REGION]:[ACCOUNT_ID]:key/[KMS_KEY] -backend-config=region=[REGION] -backend-config=bucket=terragrunt_state_place -backend-config=dynamodb_table=terragrunt_state_place -backend-config=encrypt=true -backend-config=key=staging/infrastructure/route53/public-hosted-zone/terraform.tfstate -lock-timeout=20m Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "aws" (hashicorp/aws) 2.52.0... Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/route53/public-hosted-zone] 2020/03/10 08:53:50 Running command: terraform output -json [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:53:53 Running command: terraform --version [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:53:53 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate/.terragrunt-cache/m7egG5p54tIp1SblS8cn-ZuL_dE/3gRUExxHzVrLLhEhDG9OUe1pTTM before downloading source. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:53:53 Downloading Terraform configurations from file:///Users/example/code/.infrastructure/tf-modules into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate/.terragrunt-cache/m7egG5p54tIp1SblS8cn-ZuL_dE/3gRUExxHzVrLLhEhDG9OUe1pTTM [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:53:53 Copying files from /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate/.terragrunt-cache/m7egG5p54tIp1SblS8cn-ZuL_dE/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:53:53 Setting working directory to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate/.terragrunt-cache/m7egG5p54tIp1SblS8cn-ZuL_dE/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:53:53 Initializing remote state for the s3 backend [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:53:54 Running command: terraform init -backend-config=dynamodb_table=terragrunt_state_place -backend-config=encrypt=true -backend-config=key=staging/infrastructure/acm/certificate/terraform.tfstate -backend-config=kms_key_id=arn:aws:kms:[REGION]:[ACCOUNT_ID]:key/[KMS_KEY] -backend-config=region=[REGION] -backend-config=bucket=terragrunt_state_place -lock-timeout=20m Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "aws" (hashicorp/aws) 2.52.0... Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/acm/certificate] 2020/03/10 08:54:02 Running command: terraform output -json [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:54:05 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers] 2020/03/10 08:54:05 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers] 2020/03/10 08:54:05 Running command: terraform --version [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers] 2020/03/10 08:54:05 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers/.terragrunt-cache/oVPZOVoPBTtgbhsS6pmp0mxvc-0/3gRUExxHzVrLLhEhDG9OUe1pTTM before downloading source. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers] 2020/03/10 08:54:05 Downloading Terraform configurations from file:///Users/example/code/.infrastructure/tf-modules into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers/.terragrunt-cache/oVPZOVoPBTtgbhsS6pmp0mxvc-0/3gRUExxHzVrLLhEhDG9OUe1pTTM [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers] 2020/03/10 08:54:05 Copying files from /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers/.terragrunt-cache/oVPZOVoPBTtgbhsS6pmp0mxvc-0/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers] 2020/03/10 08:54:05 Setting working directory to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers/.terragrunt-cache/oVPZOVoPBTtgbhsS6pmp0mxvc-0/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers] 2020/03/10 08:54:05 Initializing remote state for the s3 backend [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers] 2020/03/10 08:54:06 Running command: terraform init -backend-config=encrypt=true -backend-config=key=staging/infrastructure/s3/frontend-servers/terraform.tfstate -backend-config=kms_key_id=arn:aws:kms:[REGION]:[ACCOUNT_ID]:key/[KMS_KEY] -backend-config=region=[REGION] -backend-config=bucket=terragrunt_state_place -backend-config=dynamodb_table=terragrunt_state_place -lock-timeout=20m Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "aws" (hashicorp/aws) 2.52.0... Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/s3/frontend-servers] 2020/03/10 08:54:16 Running command: terraform output -json [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:54:20 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:54:20 Running command: terraform --version [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:54:20 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app/.terragrunt-cache/n-BO3Sb3QJ5aGCBYpqX-cZuOgKM/3gRUExxHzVrLLhEhDG9OUe1pTTM before downloading source. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:54:20 Downloading Terraform configurations from file:///Users/example/code/.infrastructure/tf-modules into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app/.terragrunt-cache/n-BO3Sb3QJ5aGCBYpqX-cZuOgKM/3gRUExxHzVrLLhEhDG9OUe1pTTM [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:54:20 Copying files from /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app/.terragrunt-cache/n-BO3Sb3QJ5aGCBYpqX-cZuOgKM/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:54:20 Setting working directory to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app/.terragrunt-cache/n-BO3Sb3QJ5aGCBYpqX-cZuOgKM/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:54:20 Initializing remote state for the s3 backend [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:54:21 Running command: terraform init -backend-config=dynamodb_table=terragrunt_state_place -backend-config=encrypt=true -backend-config=key=staging/infrastructure/cloudfront-s3-bucket/online-app/terraform.tfstate -backend-config=kms_key_id=arn:aws:kms:[REGION]:[ACCOUNT_ID]:key/[KMS_KEY] -backend-config=region=[REGION] -backend-config=bucket=terragrunt_state_place -lock-timeout=20m Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "aws" (hashicorp/aws) 2.52.0... Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/cloudfront-s3-bucket/online-app] 2020/03/10 08:54:31 Running command: terraform output -json [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint] 2020/03/10 08:54:35 Reading Terragrunt config file at /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint/terragrunt.hcl [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint] 2020/03/10 08:54:35 Running command: terraform --version [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint] 2020/03/10 08:54:35 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint/.terragrunt-cache/WT4bk7en4a0JvWgHE6prWT54b5c/3gRUExxHzVrLLhEhDG9OUe1pTTM before downloading source. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint] 2020/03/10 08:54:35 Downloading Terraform configurations from file:///Users/example/code/.infrastructure/tf-modules into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint/.terragrunt-cache/WT4bk7en4a0JvWgHE6prWT54b5c/3gRUExxHzVrLLhEhDG9OUe1pTTM [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint] 2020/03/10 08:54:35 Copying files from /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint into /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint/.terragrunt-cache/WT4bk7en4a0JvWgHE6prWT54b5c/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint] 2020/03/10 08:54:35 Setting working directory to /Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint/.terragrunt-cache/WT4bk7en4a0JvWgHE6prWT54b5c/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint] 2020/03/10 08:54:35 Initializing remote state for the s3 backend [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint] 2020/03/10 08:54:36 Running command: terraform init -backend-config=bucket=terragrunt_state_place -backend-config=dynamodb_table=terragrunt_state_place -backend-config=encrypt=true -backend-config=key=staging/infrastructure/ssm/es-connection-string-online-endpoint/terraform.tfstate -backend-config=kms_key_id=arn:aws:kms:[REGION]:[ACCOUNT_ID]:key/[KMS_KEY] -backend-config=region=[REGION] -lock-timeout=20m Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "aws" (hashicorp/aws) 2.52.0... - Downloading plugin for provider "null" (hashicorp/null) 2.1.2... - Downloading plugin for provider "random" (hashicorp/random) 2.2.1... The following providers do not have any version constraints in configuration, so the latest version was installed. To prevent automatic upgrades to new major versions that may contain breaking changes, it is recommended to add version = "..." constraints to the corresponding provider blocks in configuration, with the constraint strings suggested below. * provider.null: version = "~> 2.1" * provider.random: version = "~> 2.2" Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/infrastructure/ssm/es-connection-string-online-endpoint] 2020/03/10 08:54:47 Running command: terraform output -json [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:54:50 Running command: terraform --version [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:54:50 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server/.terragrunt-cache/4m03RdQhycFsbv8qH28lfL4ANjs/3gRUExxHzVrLLhEhDG9OUe1pTTM before downloading source. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:54:50 Downloading Terraform configurations from file:///Users/example/code/.infrastructure/tf-modules into /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server/.terragrunt-cache/4m03RdQhycFsbv8qH28lfL4ANjs/3gRUExxHzVrLLhEhDG9OUe1pTTM [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:54:50 Copying files from /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server into /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server/.terragrunt-cache/4m03RdQhycFsbv8qH28lfL4ANjs/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:54:50 Setting working directory to /Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server/.terragrunt-cache/4m03RdQhycFsbv8qH28lfL4ANjs/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:54:50 Initializing remote state for the s3 backend [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:54:51 Running command: terraform init -backend-config=key=staging/applications/online-app/lambda/lambda-online-frontend-server/terraform.tfstate -backend-config=kms_key_id=arn:aws:kms:[REGION]:[ACCOUNT_ID]:key/[KMS_KEY] -backend-config=region=[REGION] -backend-config=bucket=terragrunt_state_place -backend-config=dynamodb_table=terragrunt_state_place -backend-config=encrypt=true -lock-timeout=20m Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "aws" (hashicorp/aws) 2.52.0... Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/lambda/lambda-online-frontend-server] 2020/03/10 08:55:01 Running command: terraform output -json [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:55:05 Running command: terraform --version [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:55:05 Initializing remote state for the s3 backend [terragrunt] [/Users/example/code/.infrastructure/infra-deployment/staging/applications/online-app/api/api-online-frontend-server] 2020/03/10 08:55:06 Running command: terraform init -backend-config=region=[REGION] -backend-config=bucket=terragrunt_state_place -backend-config=dynamodb_table=terragrunt_state_place -backend-config=encrypt=true -backend-config=key=staging/applications/online-app/api/api-online-frontend-server/terraform.tfstate -backend-config=kms_key_id=arn:aws:kms:[REGION]:[ACCOUNT_ID]:key/[KMS_KEY] -lock-timeout=20m Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "aws" (hashicorp/aws) 2.52.0... Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. ```
Thanks for sharing the logs!
This may be a red herring, but I do see some funky things going on in the logs. In particular, this entry looks suspicious:
(paths abbreviated for easier readability)
[production/infrastructure/vpc] 2020/03/10 08:52:53 Copying files from production/infrastructure/vpc into production/infrastructure/vpc/.terragrunt-cache/NrUVugQkYGqezkFvRERCCJPGsAQ/3gRUExxHzVrLLhEhDG9OUe1pTTM/rds
Note how it is copying the source for what looks like a vpc
module under the name rds
, which would happen if there is a //rds
in the terraform source for the vpc config.
Can you share the terraform
block of the terragrunt config for /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc
?
Here is the information that you asked to share:
terraform {
source = "git@GIT.SERVER/URL/PATH/tf-modules.git//vpc"
}
By the way - it was log of failed module rds deployment in production where vpc is one of it's dependencies. It is the reason why it creates in cache of vpc module folder named rds... Where api-online-frontend-server module deployment also has dependency for the same module source vpc, but different environment (different vpc module in staging environment).
```log [terragrunt] [[REDUCTED]staging/infrastructure/vpc] 2020/03/10 08:52:58 The --terragrunt-source-update flag is set, so deleting the temporary folder [REDUCTED]staging/infrastructure/vpc/.terragrunt-cache/RsvRtUSEs3WzngNU_DERhmStJTI/3gRUExxHzVrLLhEhDG9OUe1pTTM before downloading source. [terragrunt] [[REDUCTED]staging/infrastructure/vpc] 2020/03/10 08:52:58 Downloading Terraform configurations from file:///Users/example/code/.infrastructure/tf-modules into [REDUCTED]staging/infrastructure/vpc/.terragrunt-cache/RsvRtUSEs3WzngNU_DERhmStJTI/3gRUExxHzVrLLhEhDG9OUe1pTTM [terragrunt] [[REDUCTED]staging/infrastructure/vpc] 2020/03/10 08:52:58 Copying files from [REDUCTED]staging/infrastructure/vpc into [REDUCTED]staging/infrastructure/vpc/.terragrunt-cache/RsvRtUSEs3WzngNU_DERhmStJTI/3gRUExxHzVrLLhEhDG9OUe1pTTM/apigw-old ```
I've launched the following command:
tree --dirsfirst --prune /Users/example/code/.infrastructure/infra-deployment/production/infrastructure/vpc/.terragrunt-cache/NrUVugQkYGqezkFvRERCCJPGsAQ/3gRUExxHzVrLLhEhDG9OUe1pTTM/
And got the following:
```log ./NrUVugQkYGqezkFvRERCCJPGsAQ/3gRUExxHzVrLLhEhDG9OUe1pTTM/ ├── acm │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── apigw-old │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── cognito │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── eks │ ├── gpu-worker │ │ ├── README.md │ │ ├── main.tf │ │ ├── outputs.tf │ │ └── variable.tf │ ├── master │ │ ├── README.md │ │ ├── main.tf │ │ ├── outputs.tf │ │ └── variable.tf │ └── worker │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ └── variable.tf ├── es │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── lambda-old │ ├── README.md │ ├── lambda_cloudwatch_to_es.js.tpl │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── msk │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── rds │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── route53 │ └── hosted-zone │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── s3 │ ├── cloudfront │ │ ├── README.md │ │ ├── main.tf │ │ ├── output.tf │ │ └── variables.tf │ ├── README.md │ ├── initial.zip │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── sg-generic │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ ├── terragrunt.hcl │ └── variables.tf ├── sns │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── ssm-parameter │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── ssm-parameters-bulk │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── tgw │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── vpc │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── waf │ ├── README.md │ ├── main.tf │ ├── outputs.tf │ └── variables.tf └── README.md 22 directories, 82 files ```
I think I need to dig deeper to fully analyze what is going on here, but unfortunately I am burried at the moment. This is not abandoned by any means, but it will take time to nail down the case since I don't have something that makes it easy to reproduce the issue and iterate on internal probes to pinpoint the cause.
My current hypothesis is that the terragrunt cache is getting wiped by another concurrent thread (since you have the --terragrunt-source-update
flag), but not 100% sure since we have mutex locks to prevent this.
Thanks for your patience. If you want to accelerate the process, it would help a lot if you can put up a minimal terragrunt project that depicts the problem and share it with us.
Thank you for your attention and help anyway, I'll wait patiently :) I'll create such project
Ok I tried to repro this with a test case, but after 10s of runs, I have not been able to repro along the thread I had in mind. The test case was:
.
├── common.hcl
├── a
│ └── terragrunt.hcl
├── b
│ └── terragrunt.hcl
├── c
│ └── terragrunt.hcl
├── common_dep
│ └── terragrunt.hcl
├── d
│ └── terragrunt.hcl
├── e
│ └── terragrunt.hcl
├── f
│ └── terragrunt.hcl
├── g
│ └── terragrunt.hcl
└── terragrunt.hcl
where common_dep
looks like:
terraform {
source = "../../modules//dep"
}
include {
path = find_in_parent_folders()
}
and the child config (a-g) looks like:
terraform {
source = "../../modules//child"
}
locals {
foo = read_terragrunt_config("${get_terragrunt_dir()}/../common.hcl")
}
include {
path = find_in_parent_folders()
}
inputs = {
data = local.foo.dependency.dep.outputs.random_val
}
I tried both with read_terragrunt_config
to pull in the dependency block, and dependency
rolled into the config.
The terraform config only has a random_string
resource and an aws_caller_identity
data source to get terraform to download the aws provider.
I also did not observe the behavior where it copies the files in the wrong directory. Here are my logs:
[terragrunt] [/go/src/github.com/gruntwork-io/terragrunt/test/fixture-regressions/concurrent-dependencies/live/common_dep] 2020/03/12 23:58:29 The --terragrunt-source-update flag is set, so deleting the temporary folder /go/src/github.com/gruntwork-io/terragrunt/test/fixture-regressions/concurrent-dependencies/live/common_dep/.terragrunt-cache/jSE_Bm03f3dxevFup3PViHSKf6A/09MzpoTb41YCWVaa403ewLfEPJI before downloading source.
[terragrunt] [/go/src/github.com/gruntwork-io/terragrunt/test/fixture-regressions/concurrent-dependencies/live/common_dep] 2020/03/12 23:58:29 Copying files from /go/src/github.com/gruntwork-io/terragrunt/test/fixture-regressions/concurrent-dependencies/live/common_dep into /go/src/github.com/gruntwork-io/terragrunt/test/fixture-regressions/concurrent-dependencies/live/common_dep/.terragrunt-cache/jSE_Bm03f3dxevFup3PViHSKf6A/09MzpoTb41YCWVaa403ewLfEPJI/dep
[terragrunt] [/go/src/github.com/gruntwork-io/terragrunt/test/fixture-regressions/concurrent-dependencies/live/common_dep] 2020/03/12 23:58:29 Setting working directory to /go/src/github.com/gruntwork-io/terragrunt/test/fixture-regressions/concurrent-dependencies/live/common_dep/.terragrunt-cache/jSE_Bm03f3dxevFup3PViHSKf6A/09MzpoTb41YCWVaa403ewLfEPJI/dep
[terragrunt] [/go/src/github.com/gruntwork-io/terragrunt/test/fixture-regressions/concurrent-dependencies/live/common_dep] 2020/03/12 23:58:29 Generated file /go/src/github.com/gruntwork-io/terragrunt/test/fixture-regressions/concurrent-dependencies/live/common_dep/.terragrunt-cache/jSE_Bm03f3dxevFup3PViHSKf6A/09MzpoTb41YCWVaa403ewLfEPJI/dep/backend.tf.
At this point, I probably need more code, or more logs. Can you take a look at my test case and see if you have any suggestions on how to get it to look closer to your environment?
This might be difficult, but do you think you can get a failure log with the environment variable TG_LOG=debug
? That enables a few extra logs around the mutex lock when it tries to fetch dependencies. I'm hoping it might reveal a hint as to what might be going on.
I've created an example with simple code (provisioning ssm parameter). Example code is here: https://github.com/zelig81/terragrunt_issue_1087 Dependencies:
For all the deployments I used the following command(it was plan-all/apply-all/output-all): export TF_LOG=debug; export TG_LOG=debug; terragrunt plan-all --terragrunt-source-update --terragrunt-non-interactive --terragrunt-source ~/code/.external/terragrunt_issue_1087/
When I launch deployment in tg-files/dep (modules without dependencies) - there were no problems. But when I launched modules tg/files/var-a, tg/files/var-b, tg/files/var-c then intermittently (1 in 2-5 launches) I've got the issue of exited plugin in tg-files/dep folder deployment.
Here is the log of failed deployment in tg-files/dep with debug logging
```log
[terragrunt] 2020/03/15 19:40:36 Terragrunt Version: v0.23.2
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 Did not find any locals block: skipping evaluation.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 Did not find any locals block: skipping evaluation.
[terragrunt] 2020/03/15 19:40:36 Setting download directory for module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep to /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep/.terragrunt-cache
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:40:36 Did not find any locals block: skipping evaluation.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:40:36 Did not find any locals block: skipping evaluation.
[terragrunt] 2020/03/15 19:40:36 Setting download directory for module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep to /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep/.terragrunt-cache
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:40:36 Did not find any locals block: skipping evaluation.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:40:36 Did not find any locals block: skipping evaluation.
[terragrunt] 2020/03/15 19:40:36 Setting download directory for module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep to /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep/.terragrunt-cache
[terragrunt] 2020/03/15 19:40:36 Stack at /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep:
=> Module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep (excluded: false, dependencies: [])
=> Module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep (excluded: false, dependencies: [])
=> Module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep (excluded: false, dependencies: [])
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:40:36 Module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep must wait for 0 dependencies to finish
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:40:36 Running module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep now
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:40:36 Reading Terragrunt config file at /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep/terragrunt.hcl
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 Module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep must wait for 0 dependencies to finish
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 Running module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep now
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 Reading Terragrunt config file at /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep/terragrunt.hcl
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:40:36 Module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep must wait for 0 dependencies to finish
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:40:36 Running module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep now
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:40:36 Reading Terragrunt config file at /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep/terragrunt.hcl
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:40:36 Did not find any locals block: skipping evaluation.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 Did not find any locals block: skipping evaluation.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:40:36 Did not find any locals block: skipping evaluation.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:40:36 Did not find any locals block: skipping evaluation.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 Did not find any locals block: skipping evaluation.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:40:36 Did not find any locals block: skipping evaluation.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep/.terragrunt-cache/sWpiXw4jO_zXUQoMreb6qjfb6V8/bQYZk3-HsFAyd3gqa0dF80ehSoE before downloading source.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:40:36 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep/.terragrunt-cache/O-xNW5tvhvTl7u5KnBawOMbXMJk/bQYZk3-HsFAyd3gqa0dF80ehSoE before downloading source.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:40:36 The --terragrunt-source-update flag is set, so deleting the temporary folder /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep/.terragrunt-cache/ALAW-9qKrWFB6k-nU6L3O4aLABI/bQYZk3-HsFAyd3gqa0dF80ehSoE before downloading source.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:40:36 Downloading Terraform configurations from file:///Users/example/code/.external/terragrunt_issue_1087 into /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep/.terragrunt-cache/O-xNW5tvhvTl7u5KnBawOMbXMJk/bQYZk3-HsFAyd3gqa0dF80ehSoE
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 Downloading Terraform configurations from file:///Users/example/code/.external/terragrunt_issue_1087 into /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep/.terragrunt-cache/sWpiXw4jO_zXUQoMreb6qjfb6V8/bQYZk3-HsFAyd3gqa0dF80ehSoE
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:40:36 Downloading Terraform configurations from file:///Users/example/code/.external/terragrunt_issue_1087 into /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep/.terragrunt-cache/ALAW-9qKrWFB6k-nU6L3O4aLABI/bQYZk3-HsFAyd3gqa0dF80ehSoE
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 Copying files from /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep into /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep/.terragrunt-cache/sWpiXw4jO_zXUQoMreb6qjfb6V8/bQYZk3-HsFAyd3gqa0dF80ehSoE/tf-modules/ssm-test-dep
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:40:36 Copying files from /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep into /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep/.terragrunt-cache/O-xNW5tvhvTl7u5KnBawOMbXMJk/bQYZk3-HsFAyd3gqa0dF80ehSoE/tf-modules/ssm-test-dep
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 Setting working directory to /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep/.terragrunt-cache/sWpiXw4jO_zXUQoMreb6qjfb6V8/bQYZk3-HsFAyd3gqa0dF80ehSoE/tf-modules/ssm-test-dep
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:40:36 Setting working directory to /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep/.terragrunt-cache/O-xNW5tvhvTl7u5KnBawOMbXMJk/bQYZk3-HsFAyd3gqa0dF80ehSoE/tf-modules/ssm-test-dep
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:40:36 Copying files from /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep into /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep/.terragrunt-cache/ALAW-9qKrWFB6k-nU6L3O4aLABI/bQYZk3-HsFAyd3gqa0dF80ehSoE/tf-modules/ssm-test-dep
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:40:36 Setting working directory to /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep/.terragrunt-cache/ALAW-9qKrWFB6k-nU6L3O4aLABI/bQYZk3-HsFAyd3gqa0dF80ehSoE/tf-modules/ssm-test-dep
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:44:51 Running command: terraform plan -lock-timeout=20m
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
aws_ssm_parameter.this: Refreshing state... [id=/test/terragrunt_issue_1087/dep/var-b-dep]
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_ssm_parameter.this will be updated in-place
~ resource "aws_ssm_parameter" "this" {
arn = "arn:aws:ssm:us-east-1:[REDUCTED]:parameter/test/terragrunt_issue_1087/dep/var-b-dep"
id = "/test/terragrunt_issue_1087/dep/var-b-dep"
key_id = "alias/aws/ssm"
name = "/test/terragrunt_issue_1087/dep/var-b-dep"
tags = {}
tier = "Standard"
type = "SecureString"
~ value = (sensitive value)
version = 1
}
Plan: 0 to add, 1 to change, 0 to destroy.
------------------------------------------------------------------------
Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep] 2020/03/15 19:45:02 Module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-b-dep has finished successfully!
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:45:03 Running command: terraform plan -lock-timeout=20m
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
aws_ssm_parameter.this: Refreshing state... [id=/test/terragrunt_issue_1087/dep/var-a-dep]
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_ssm_parameter.this will be updated in-place
~ resource "aws_ssm_parameter" "this" {
arn = "arn:aws:ssm:us-east-1:[REDUCTED]:parameter/test/terragrunt_issue_1087/dep/var-a-dep"
id = "/test/terragrunt_issue_1087/dep/var-a-dep"
key_id = "alias/aws/ssm"
name = "/test/terragrunt_issue_1087/dep/var-a-dep"
tags = {}
tier = "Standard"
type = "SecureString"
~ value = (sensitive value)
version = 1
}
Plan: 0 to add, 1 to change, 0 to destroy.
------------------------------------------------------------------------
Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:45:13 Module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep has finished successfully!
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:45:59 Running command: terraform plan -lock-timeout=20m
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
aws_ssm_parameter.this: Refreshing state... [id=/test/terragrunt_issue_1087/dep/var-c-dep]
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_ssm_parameter.this will be updated in-place
~ resource "aws_ssm_parameter" "this" {
arn = "arn:aws:ssm:us-east-1:[REDUCTED]:parameter/test/terragrunt_issue_1087/dep/var-c-dep"
id = "/test/terragrunt_issue_1087/dep/var-c-dep"
key_id = "alias/aws/ssm"
name = "/test/terragrunt_issue_1087/dep/var-c-dep"
tags = {}
tier = "Standard"
type = "SecureString"
~ value = (sensitive value)
version = 1
}
Plan: 0 to add, 1 to change, 0 to destroy.
------------------------------------------------------------------------
Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep] 2020/03/15 19:46:15 Module /Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-c-dep has finished successfully!
[terragrunt] 2020/03/15 19:46:15 Error with plan: [terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 Running command: terraform --version
[terragrunt] [/Users/example/code/.external/terragrunt_issue_1087/tg-files/dep/var-a-dep] 2020/03/15 19:40:36 Running command: terraform init -backend-config=path=/Users/example/code/.external/terragrunt_issue_1087/tg-files/state/dep/var-a-dep/terraform.tfstate -lock-timeout=20m
2020/03/15 19:40:36 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2020/03/15 19:40:36 [INFO] Terraform version: 0.12.23
2020/03/15 19:40:36 [INFO] Go runtime version: go1.12.13
2020/03/15 19:40:36 [INFO] CLI args: []string{"/usr/local/bin/terraform", "init", "-backend-config=path=/Users/example/code/.external/terragrunt_issue_1087/tg-files/state/dep/var-a-dep/terraform.tfstate", "-lock-timeout=20m"}
2020/03/15 19:40:36 [DEBUG] Attempting to open CLI config file: /Users/example/.terraformrc
2020/03/15 19:40:36 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/03/15 19:40:36 [INFO] CLI command args: []string{"init", "-backend-config=path=/Users/example/code/.external/terragrunt_issue_1087/tg-files/state/dep/var-a-dep/terraform.tfstate", "-lock-timeout=20m"}
2020/03/15 19:40:36 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
Initializing the backend...
2020/03/15 19:40:36 [DEBUG] New state was assigned lineage "b3ae01a4-804b-1879-5083-1293390c84aa"
2020/03/15 19:40:36 [DEBUG] checking for provider in "."
2020/03/15 19:40:36 [DEBUG] checking for provider in "/usr/local/bin"
2020/03/15 19:40:36 [DEBUG] checking for provisioner in "."
2020/03/15 19:40:36 [DEBUG] checking for provisioner in "/usr/local/bin"
2020/03/15 19:40:36 [INFO] Failed to read plugin lock file .terraform/plugins/darwin_amd64/lock.json: open .terraform/plugins/darwin_amd64/lock.json: no such file or directory
2020/03/15 19:40:36 [DEBUG] New state was assigned lineage "1495fbd4-e6c4-704f-4edf-72bf42d6525f"
Successfully configured the backend "local"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins...
- Checking for available provider plugins...
2020/03/15 19:40:36 [DEBUG] checking for provider in "."
2020/03/15 19:40:36 [DEBUG] checking for provider in "/usr/local/bin"
2020/03/15 19:40:36 [DEBUG] checking for provisioner in "."
2020/03/15 19:40:36 [DEBUG] checking for provisioner in "/usr/local/bin"
2020/03/15 19:40:36 [INFO] Failed to read plugin lock file .terraform/plugins/darwin_amd64/lock.json: open .terraform/plugins/darwin_amd64/lock.json: no such file or directory
2020/03/15 19:40:36 [DEBUG] checking for provider in "."
2020/03/15 19:40:36 [DEBUG] checking for provider in "/usr/local/bin"
2020/03/15 19:40:36 [DEBUG] plugin requirements: "aws"="~> 2.53.0"
2020/03/15 19:40:36 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2020/03/15 19:40:36 [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json
2020/03/15 19:40:37 [DEBUG] fetching provider versions from "https://registry.terraform.io/v1/providers/-/aws/versions"
2020/03/15 19:40:37 [DEBUG] GET https://registry.terraform.io/v1/providers/-/aws/versions
2020/03/15 19:40:37 [DEBUG] fetching provider location from "https://registry.terraform.io/v1/providers/hashicorp/aws/2.53.0/download/darwin/amd64"
2020/03/15 19:40:37 [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/aws/2.53.0/download/darwin/amd64
2020/03/15 19:40:38 [DEBUG] verified GPG signature with key from HashiCorp Security
By the way (do not know if that is some correlation with my issue) - fetching of plugins takes huge amount of time (from minutes to hours)
I found a workaround for the problem of waiting time for fetching plugins (.terraformrc with plugin_cache_dir). Perhaps it solved me a problem of providers error - but it still looks like workaround...
Seems like https://github.com/gruntwork-io/terragrunt/issues/2542, https://github.com/gruntwork-io/terragrunt/issues/1212, and several other reports. We have been having very serious impact on ability to run until we adopted the approach of a dummy-module that downloads all providers to cache (as per https://github.com/gruntwork-io/terragrunt/issues/1212#issuecomment-1624053517). We are using both TF_PLUGIN_CACHE_DIR and TERRAGRUNT_DOWNLOAD variables. Still not 100% better, but improved.
Resolved in v0.50.11 release.
I've got the following error when tried to launch
terragrunt plan-all --terragrunt-source-update --terragrunt-non-interactive --terragrunt-source /path/to/the/sources
on multiple modules at the same time:Error installing provider "aws": chmod .terraform/plugins/darwin_amd64/terraform-provider-aws_v2.52.0_x4: no such file or directory.
The mentioned modules do have separated set of dependencies
Terraform v0.12.23 terragrunt version v0.23.0