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

Adding a computed ARN for the S3 Bucket as per #3666 #3685

Merged
merged 1 commit into from
Oct 29, 2015

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Oct 29, 2015

Is a suggested enhancement as per #3666

@catsby
Copy link
Contributor

catsby commented Oct 29, 2015

Is there somewhere I can see the ARN for my bucket? How do I verify this?

@catsby catsby self-assigned this Oct 29, 2015
@catsby catsby added enhancement waiting-response An issue/pull request is waiting for a response from the community provider/aws labels Oct 29, 2015
@stack72
Copy link
Contributor Author

stack72 commented Oct 29, 2015

@catsby The ARN for an S3 bucket is a standard format (as per the docs)

http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-s3

It is used when specifying s3 buckets in IAM roles etc:

resource "aws_iam_role_policy" "All-Access-S3-Backup" {
    name   = "All-Access-S3-Backup"
    role = "${aws_iam_role.app-server.id}"
    policy = <<POLICY
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:*"
      ],
      "Resource": [
        "arn:aws:s3:::digit-backup",
        "arn:aws:s3:::digit-backup/*"
      ]
    }
  ]
}
POLICY
}

Before this change (and the request) I used to hardcode these values.

@catsby
Copy link
Contributor

catsby commented Oct 29, 2015

I understand the format, I was just curious if there was a place I could actually see it. Normally the console or aws <service> --describe-thing or similar, but the aws CLI for S3 seems lacking 😕

I'll go ahead and merge this in, thanks

catsby added a commit that referenced this pull request Oct 29, 2015
Adding a computed ARN for the S3 Bucket as per #3666
@catsby catsby merged commit cc0b941 into hashicorp:master Oct 29, 2015
@stack72
Copy link
Contributor Author

stack72 commented Oct 29, 2015

@catsby FWIW, I went straight to the console to see if I could find it and then I went to the CLI reference :)

@stack72 stack72 deleted the f-aws-s3bucket-arn branch October 29, 2015 16:11
@ghost
Copy link

ghost commented Apr 30, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement provider/aws waiting-response An issue/pull request is waiting for a response from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants