How to load variables from parent file

Hello, I’m new in Terragrunt so please don’t judge me too strictly

So I’ve following directory structure

Init/

├── ZoneOne
│ ├── local.tf
│ ├── main.tf
│ └── terragrunt.hcl
├── ZoneTwo
│ ├── local.tf
│ ├── main.tf
│ └── terragrunt.hcl
└── init.hcl

As first step, terragrunt must create a S3 bucket, to store the initial states, however when I apply Y to create a S3 bucket, it creates a bucket only for ZoneOne, and somehow skipping the bucket creation for ZoneTwo

Output:

Remote state S3 bucket **backet_one** does not exist or you don't have permissions to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket **backet_two** does not exist or you don't have permissions to access it. Would you like Terragrunt to create it? (y/n) y

How to solve this issue?

Hi @unity-unity,

You can use --terragrunt-non-interactive to answer yes for the prompts automatically.

Yori

1 Like