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

S3 bucket grantee #247

Closed
hashibot opened this issue Jun 13, 2017 · 15 comments
Closed

S3 bucket grantee #247

hashibot opened this issue Jun 13, 2017 · 15 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/s3 Issues and PRs that pertain to the s3 service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.

Comments

@hashibot
Copy link

This issue was originally opened by @pporada-gl as hashicorp/terraform#8583. It was migrated here as part of the provider split. The original body of the issue is below.


Terraform Version

Terraform v0.7.2

Affected Resource(s)

Please list the resources as a list, for example:

  • aws_s3_bucket

Expected Behavior

I should be able to set a grantee on a bucket. Currently I have to use a null_resource and a local_exec to run

    $ aws s3api put-bucket-acl --bucket mybucket --grant-write id=XXXXXXXXXXXXXXXXX

Actual Behavior

I can't set a grantee on a bucket via specifically the aws_s3_bucket resource though it is supported in the Go SDK.

Important Factoids

The AWS Go SDK supports grants on S3 buckets.
https://github.com/aws/aws-sdk-go/blob/master/models/apis/s3/2006-03-01/api-2.json#L2331

@hashibot hashibot added the enhancement Requests to existing resources that expand the functionality or scope. label Jun 13, 2017
@rokka-n
Copy link

rokka-n commented Jun 22, 2017

It would be nice to have this supported.

@jingyimei
Copy link

+1

4 similar comments
@kmacoskey
Copy link
Contributor

+1

@divyabhargov
Copy link

+1

@CpuID
Copy link
Contributor

CpuID commented Nov 5, 2017

+1

@segersniels
Copy link

+1

@radeksimko radeksimko added the service/s3 Issues and PRs that pertain to the s3 service. label Jan 25, 2018
@leighmhart
Copy link
Contributor

+1

1 similar comment
@jonathanhle
Copy link

+1

@ewbankkit
Copy link
Contributor

@FearlessHyena
Copy link

Would be great if this was supported

@ewbankkit
Copy link
Contributor

@pporada-gl @FearlessHyena Does the new aws_s3_bucket.grant argument added via #989, #3728 and available in version 2.52.0 of the Terraform AWS provider address your use case?

@FearlessHyena
Copy link

@ewbankkit Thanks for the reference. I didn't realise they added to the AWS provider recently. Let me try it out and see if it addresses my use case

@github-actions
Copy link

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Mar 13, 2022
@anGie44
Copy link
Contributor

anGie44 commented Apr 11, 2022

Hi all, closing this is it's also available via the new aws_s3_bucket_acl.access_control_policy parameter available since v3.75.0 of the Terraform AWS Provider.

@anGie44 anGie44 closed this as completed Apr 11, 2022
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2022
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. service/s3 Issues and PRs that pertain to the s3 service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.
Projects
None yet
Development

No branches or pull requests