Commit df1b576d authored by Sean McGivern's avatar Sean McGivern

Merge branch '218630-update-example-terraform-state-bucket' into 'master'

Use valid bucket name in Terraform state examples

See merge request gitlab-org/gitlab!36513
parents 4828d382 40dc47c6
...@@ -360,7 +360,7 @@ production: &base ...@@ -360,7 +360,7 @@ production: &base
# storage_path: shared/terraform_state # storage_path: shared/terraform_state
object_store: object_store:
enabled: false enabled: false
remote_directory: terraform_state # The bucket name remote_directory: terraform # The bucket name
connection: connection:
provider: AWS provider: AWS
aws_access_key_id: AWS_ACCESS_KEY_ID aws_access_key_id: AWS_ACCESS_KEY_ID
...@@ -1253,7 +1253,7 @@ test: ...@@ -1253,7 +1253,7 @@ test:
storage_path: tmp/tests/terraform_state storage_path: tmp/tests/terraform_state
object_store: object_store:
enabled: false enabled: false
remote_directory: terraform_state remote_directory: terraform
connection: connection:
provider: AWS # Only AWS supported at the moment provider: AWS # Only AWS supported at the moment
aws_access_key_id: AWS_ACCESS_KEY_ID aws_access_key_id: AWS_ACCESS_KEY_ID
......
...@@ -78,7 +78,7 @@ See [the available connection settings for different providers](object_storage.m ...@@ -78,7 +78,7 @@ See [the available connection settings for different providers](object_storage.m
```ruby ```ruby
gitlab_rails['terraform_state_enabled'] = true gitlab_rails['terraform_state_enabled'] = true
gitlab_rails['terraform_state_object_store_enabled'] = true gitlab_rails['terraform_state_object_store_enabled'] = true
gitlab_rails['terraform_state_object_store_remote_directory'] = "terraform_state" gitlab_rails['terraform_state_object_store_remote_directory'] = "terraform"
gitlab_rails['terraform_state_object_store_connection'] = { gitlab_rails['terraform_state_object_store_connection'] = {
'provider' => 'AWS', 'provider' => 'AWS',
'region' => 'eu-central-1', 'region' => 'eu-central-1',
...@@ -110,7 +110,7 @@ See [the available connection settings for different providers](object_storage.m ...@@ -110,7 +110,7 @@ See [the available connection settings for different providers](object_storage.m
enabled: true enabled: true
object_store: object_store:
enabled: true enabled: true
remote_directory: "terraform_state" # The bucket name remote_directory: "terraform" # The bucket name
connection: connection:
provider: AWS # Only AWS supported at the moment provider: AWS # Only AWS supported at the moment
aws_access_key_id: AWS_ACESS_KEY_ID aws_access_key_id: AWS_ACESS_KEY_ID
......
...@@ -92,7 +92,7 @@ module StubObjectStorage ...@@ -92,7 +92,7 @@ module StubObjectStorage
def stub_terraform_state_object_storage(uploader = described_class, **params) def stub_terraform_state_object_storage(uploader = described_class, **params)
stub_object_storage_uploader(config: Gitlab.config.terraform_state.object_store, stub_object_storage_uploader(config: Gitlab.config.terraform_state.object_store,
uploader: uploader, uploader: uploader,
remote_directory: 'terraform_state', remote_directory: 'terraform',
**params) **params)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment