Closed rnagle closed 7 years ago
Does this apply to both network and deployment TF configs? Or would you run this once per network and once per deployment?
Run it once per, changing the -t
(type) flag: ./init_app_tf.sh -t <deployment|network>
@rnagle I got this when running APP=example-web-app ENV=test ./init_app_tf.sh -t network
:
Initializing the backend...
Error inspecting state in "s3": NoSuchBucket: The specified bucket does not exist
status code: 404, request id: 4F84F11941D8CF00, host id: wjaMsV4e6qbzWsq4OjgmgyLTh6kn2yY/1CCDNayFMWBRa8ylfBB5dmW4Y6MdB0lTol50EQ+geAE=
Prior to changing backends, Terraform inspects the source and destination
states to determine what kind of migration steps need to be taken, if any.
Terraform failed to load the states. The data in both the source and the
destination remain unmodified. Please resolve the above error and try again.
@paulsmith Hm. Can you double check your AWS_PROFILE
and give it another shot? The s3 bucket and dynamo db table are present and the script appears to work for me.
Rough idea:
temp: [PATH]
in the last line:Use it to perform any terraform operations, clean up the dir when you're done: