-
Notifications
You must be signed in to change notification settings - Fork 160
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
Refacto aws_s3_bucket
#471
Conversation
eliecharra
commented
Apr 29, 2021
Q | A |
---|---|
π Bug fix? | no |
π New feature? | no |
β Deprecations? | no |
β BC Break | no |
π Related issues | #347 |
β Documentation | no |
Codecov Report
@@ Coverage Diff @@
## main #471 +/- ##
==========================================
+ Coverage 69.61% 69.71% +0.09%
==========================================
Files 286 286
Lines 6641 6653 +12
==========================================
+ Hits 4623 4638 +15
+ Misses 1648 1644 -4
- Partials 370 371 +1
|
d4d1613
to
14e2e5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
"policy": bucket.Policy, | ||
"id": bucket.TerraformId(), | ||
"bucket": bucketName, | ||
"policy": policy, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could totally write it that way since we won't need bucketName or policy var anymore when S3BucketPolicy
will be refactored.
data := map[string]interface{}{
"id": bucket.TerraformId(),
"bucket": (*bucket.Attrs)["bucket"],
"policy": policyAttr,
}
"permissions": []string{"FULL_CONTROL"}, | ||
"type": awssdk.String("CanonicalUser"), | ||
"uri": awssdk.String(""), | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can delete all the pointers for the attributes of each grant
we won't need it anymore. Same for the other tests in this file.
14e2e5c
to
43229f9
Compare
43229f9
to
98a43ac
Compare