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

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lowercase}} == See also == * {{terraform init}} Category:Terraform")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
  
 +
 +
* <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
 +
                          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 ==
 +
* [[Terraform backends]]
  
 
== See also ==
 
== See also ==

Latest revision as of 19:04, 26 September 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.

Related[edit]

See also[edit]

Advertising: