-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Terraform plan with no sponsored bucket]
- Loading branch information
Aaron Kanzer
authored and
Aaron Kanzer
committed
Oct 31, 2024
1 parent
7937110
commit 9d9f2af
Showing
10 changed files
with
159 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
module "sponsored_dandiset_bucket" { | ||
source = "./modules/dandiset_bucket" | ||
bucket_name = "dandiarchive" | ||
public = true | ||
versioning = true | ||
trailing_delete = false | ||
allow_cross_account_heroku_put_object = true | ||
heroku_user = data.aws_iam_user.api | ||
log_bucket_name = "dandiarchive-logs" | ||
providers = { | ||
aws = aws.sponsored | ||
aws.project = aws | ||
} | ||
} | ||
|
||
module "sponsored_embargo_bucket" { | ||
source = "./modules/dandiset_bucket" | ||
bucket_name = "dandiarchive-embargo" | ||
versioning = false | ||
trailing_delete = false | ||
heroku_user = data.aws_iam_user.api | ||
log_bucket_name = "dandiarchive-embargo-logs" | ||
providers = { | ||
aws = aws.sponsored | ||
aws.project = aws | ||
} | ||
} | ||
# module "sponsored_dandiset_bucket" { | ||
# source = "./modules/dandiset_bucket" | ||
# bucket_name = "dandiarchive" | ||
# public = true | ||
# versioning = true | ||
# trailing_delete = false | ||
# allow_cross_account_heroku_put_object = true | ||
# heroku_user = data.aws_iam_user.api | ||
# log_bucket_name = "dandiarchive-logs" | ||
# providers = { | ||
# aws = aws.sponsored | ||
# aws.project = aws | ||
# } | ||
# } | ||
# | ||
# module "sponsored_embargo_bucket" { | ||
# source = "./modules/dandiset_bucket" | ||
# bucket_name = "dandiarchive-embargo" | ||
# versioning = false | ||
# trailing_delete = false | ||
# heroku_user = data.aws_iam_user.api | ||
# log_bucket_name = "dandiarchive-embargo-logs" | ||
# providers = { | ||
# aws = aws.sponsored | ||
# aws.project = aws | ||
# } | ||
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
resource "aws_iam_group" "sponsored_writers" { | ||
provider = aws.sponsored | ||
|
||
name = "writers" | ||
} | ||
|
||
resource "aws_iam_group_policy" "sponsored_writers" { | ||
provider = aws.sponsored | ||
|
||
name = "bucket-write" | ||
group = aws_iam_group.sponsored_writers.name | ||
policy = data.aws_iam_policy_document.sponsored_writers.json | ||
} | ||
|
||
data "aws_iam_policy_document" "sponsored_writers" { | ||
version = "2012-10-17" | ||
statement { | ||
sid = "VisualEditor0" | ||
actions = [ | ||
"s3:DeleteObjectTagging", | ||
"s3:ListBucketByTags", | ||
"s3:ListBucketMultipartUploads", | ||
"s3:GetBucketTagging", | ||
"s3:ListBucketVersions", | ||
"s3:PutObjectVersionTagging", | ||
"s3:ListBucket", | ||
"s3:DeleteObjectVersionTagging", | ||
"s3:GetBucketVersioning", | ||
"s3:GetObjectVersionTorrent", | ||
"s3:PutObject", | ||
"s3:GetObject", | ||
"s3:PutBucketTagging", | ||
"s3:GetObjectTagging", | ||
"s3:PutObjectTagging", | ||
"s3:DeleteObject", | ||
"s3:GetBucketLocation", | ||
"s3:GetObjectVersion", | ||
] | ||
resources = [ | ||
"${module.sponsored_dandiset_bucket.bucket_arn}/*", | ||
module.sponsored_dandiset_bucket.bucket_arn, | ||
] | ||
} | ||
} | ||
# resource "aws_iam_group" "sponsored_writers" { | ||
# provider = aws.sponsored | ||
# | ||
# name = "writers" | ||
# } | ||
# | ||
# resource "aws_iam_group_policy" "sponsored_writers" { | ||
# provider = aws.sponsored | ||
# | ||
# name = "bucket-write" | ||
# group = aws_iam_group.sponsored_writers.name | ||
# policy = data.aws_iam_policy_document.sponsored_writers.json | ||
# } | ||
# | ||
# data "aws_iam_policy_document" "sponsored_writers" { | ||
# version = "2012-10-17" | ||
# statement { | ||
# sid = "VisualEditor0" | ||
# actions = [ | ||
# "s3:DeleteObjectTagging", | ||
# "s3:ListBucketByTags", | ||
# "s3:ListBucketMultipartUploads", | ||
# "s3:GetBucketTagging", | ||
# "s3:ListBucketVersions", | ||
# "s3:PutObjectVersionTagging", | ||
# "s3:ListBucket", | ||
# "s3:DeleteObjectVersionTagging", | ||
# "s3:GetBucketVersioning", | ||
# "s3:GetObjectVersionTorrent", | ||
# "s3:PutObject", | ||
# "s3:GetObject", | ||
# "s3:PutBucketTagging", | ||
# "s3:GetObjectTagging", | ||
# "s3:PutObjectTagging", | ||
# "s3:DeleteObject", | ||
# "s3:GetBucketLocation", | ||
# "s3:GetObjectVersion", | ||
# ] | ||
# resources = [ | ||
# "${module.sponsored_dandiset_bucket.bucket_arn}/*", | ||
# module.sponsored_dandiset_bucket.bucket_arn, | ||
# ] | ||
# } | ||
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.