terraform init -backend-config

From wikieduonline
Jump to navigation Jump to search


  • terraform init -backend-config=bucket=your_bucket_name -backend-config=key=your-key-name/project/***/state.tfstate -backend-config=region=XXXXX -backend-config=access_key=XXXX -backend-config=secret_key=XXXX
 -backend-config=path    Configuration to be merged with what is in the
                         configuration file's 'backend' block. This can be
                         either a path to an HCL file with key/value
                         assignments (same format as terraform.tfvars) or a
                         'key=value' format, and can be specified multiple
                         times. The backend type must be in the configuration
                         itself.

Related[edit]

See also[edit]

Advertising: