Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose arn as an attribute for data.aws_secretsmanager_secret_version #5160

Closed
ghost opened this issue Jul 11, 2018 · 3 comments · Fixed by #5488
Closed

Expose arn as an attribute for data.aws_secretsmanager_secret_version #5160

ghost opened this issue Jul 11, 2018 · 3 comments · Fixed by #5488
Labels
enhancement Requests to existing resources that expand the functionality or scope. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. service/secretsmanager Issues and PRs that pertain to the secretsmanager service.
Milestone

Comments

@ghost
Copy link

ghost commented Jul 11, 2018

This issue was originally opened by @mlimotte as hashicorp/terraform#18435. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

Terraform v0.11.7
+ provider.aws v1.22.0

Terraform Configuration Files

data "aws_secretsmanager_secret_version" "foo" {
  secret_id     = "foo/bar"
  version_stage = "AWSCURRENT"
}

${data.aws_secretsmanager_secret_version.foo.arn}

Expected Behavior

Attributes for aws_secretsmanager_secret_version should include arn. This is needed, for example, in order to create an IAM policy that can do secretsmanager:GetSecretValue using the secret version as a resource.

Actual Behavior

ARN is not exposed as a data.aws_secretsmanager_secret_version attribute.

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. service/secretsmanager Issues and PRs that pertain to the secretsmanager service. labels Jul 11, 2018
@bflad bflad added this to the v1.32.0 milestone Aug 9, 2018
bflad added a commit that referenced this issue Aug 9, 2018
Issue #5160 arn as an attribute for aws_secretsmanager_secret_version
@bflad
Copy link
Contributor

bflad commented Aug 9, 2018

A new arn attribute for the aws_secretsmanager_secret_version resource and data source has been merged into master and will release with version 1.32.0 of the AWS provider, likely middle of next week.

@bflad
Copy link
Contributor

bflad commented Aug 16, 2018

This has been released in version 1.32.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link
Author

ghost commented Apr 4, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. service/secretsmanager Issues and PRs that pertain to the secretsmanager service.
Projects
None yet
1 participant