From 933192280b1fc021bcd5ee109c7894b126097262 Mon Sep 17 00:00:00 2001 From: Elim Tsiagbey Date: Tue, 6 Feb 2024 11:00:46 -0500 Subject: [PATCH] docs: Add required field for storage bucket example (#557) Update example for dynamic credential for storage bucket to include `disable_credential_rotation` attribute. `disable_credential_rotation` needs to be set to true when configuring dynamic credentials --- docs/resources/storage_bucket.md | 5 +++-- examples/resources/boundary_storage_bucket/resource.tf | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/resources/storage_bucket.md b/docs/resources/storage_bucket.md index 3af9ae48..5e080f4e 100644 --- a/docs/resources/storage_bucket.md +++ b/docs/resources/storage_bucket.md @@ -48,8 +48,9 @@ resource "boundary_storage_bucket" "aws_dynamic_credentials_example" { # the role_arn value should be the same arn used as the instance profile that is attached to the ec2 instance # https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2_instance-profiles.html attributes_json = jsonencode({ - "region" = "us-east-1" - "role_arn" = "arn:aws:iam::123456789012:role/S3Access" + "region" = "us-east-1" + "role_arn" = "arn:aws:iam::123456789012:role/S3Access" + "disable_credential_rotation" = "true" }) worker_filter = "\"pki\" in \"/tags/type\"" } diff --git a/examples/resources/boundary_storage_bucket/resource.tf b/examples/resources/boundary_storage_bucket/resource.tf index 67b9408f..0594f3ae 100644 --- a/examples/resources/boundary_storage_bucket/resource.tf +++ b/examples/resources/boundary_storage_bucket/resource.tf @@ -33,8 +33,9 @@ resource "boundary_storage_bucket" "aws_dynamic_credentials_example" { # the role_arn value should be the same arn used as the instance profile that is attached to the ec2 instance # https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2_instance-profiles.html attributes_json = jsonencode({ - "region" = "us-east-1" - "role_arn" = "arn:aws:iam::123456789012:role/S3Access" + "region" = "us-east-1" + "role_arn" = "arn:aws:iam::123456789012:role/S3Access" + "disable_credential_rotation" = "true" }) worker_filter = "\"pki\" in \"/tags/type\"" -} \ No newline at end of file +}