Difference between revisions of "Terraform init -backend-config"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
  
* <code>[[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</code>
+
* <code>[[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</code>
  
 
   -backend-config=path    Configuration to be merged with what is in the
 
   -backend-config=path    Configuration to be merged with what is in the

Revision as of 02:52, 28 February 2022


  • 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.

See also

Advertising: