Skip to content

Commit 7c9abf6

Browse files
committed
Refactor sbo{,_} prefix out of infra assets bucket resources
1 parent c7bc673 commit 7c9abf6

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

hpc/compute-cluster/policies.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resource "aws_iam_policy" "parallelcluster_rpms_policy" {
88
{
99
"Effect" : "Allow",
1010
"Action" : "s3:GetObject",
11-
"Resource" : "arn:aws:s3:::sboinfrastructureassets/rpms/*"
11+
"Resource" : "arn:aws:s3:::sboinfrastructureassets*/rpms/*"
1212
}
1313
]
1414
})

hpc/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module "resource-provisioner" {
103103
containers_bucket = var.containers_bucket
104104
scratch_bucket = var.scratch_bucket
105105
scratch_bucket_arn = var.scratch_bucket_arn
106-
infra_assets_bucket = var.sboinfrastructureassets_bucket_name
106+
infra_assets_bucket = var.infrastructureassets_bucket_name
107107
fsx_policy_arn = module.security.fsx_policy_arn
108108
fs_subnet_ids = module.networking.fs_subnet_ids
109109
fs_sg_id = module.security.compute_efs_sg_id
@@ -117,7 +117,7 @@ module "dynamodb" {
117117

118118
module "s3" {
119119
source = "./s3/"
120-
sboinfrastructureassets_bucket_name = var.sboinfrastructureassets_bucket_name
120+
infrastructureassets_bucket_name = var.infrastructureassets_bucket_name
121121
hpc_resource_provisioner_sbo_nexusdata_bucket = var.sbo_nexusdata_bucket
122122
hpc_resource_provisioner_scratch_bucket = var.scratch_bucket
123123
account_id = var.account_id

hpc/s3/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
locals {
2-
infra_assets_bucket_name = trimprefix(var.sboinfrastructureassets_bucket_name, "s3://")
2+
infra_assets_bucket_name = trimprefix(var.infrastructureassets_bucket_name, "s3://")
33
projects_bucket_name = trimprefix(var.hpc_resource_provisioner_sbo_nexusdata_bucket, "s3://")
44
scratch_bucket_name = trimprefix(var.hpc_resource_provisioner_scratch_bucket, "s3://")
55
}

hpc/s3/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
variable "sboinfrastructureassets_bucket_name" {
1+
variable "infrastructureassets_bucket_name" {
22
type = string
33
}
44

hpc/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ variable "private_alb_https_listener_arn" {
110110
type = string
111111
}
112112

113-
variable "sboinfrastructureassets_bucket_name" {
113+
variable "infrastructureassets_bucket_name" {
114114
type = string
115115
}
116116

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ module "github_ami_build_role" {
247247
github_organisation = local.github_organisation
248248
github_oidc_provider_arn = module.github_oidc_provider.oidc_provider_arn
249249
repo_name = "machine-images"
250-
bucket_name = var.sbo_infrastructureassets_bucket
250+
bucket_name = var.infrastructureassets_bucket
251251
}
252252

253253
module "notebook_service" {
@@ -323,7 +323,7 @@ module "hpc" {
323323
scratch_bucket = var.hpc_resource_provisioner_scratch_bucket
324324
scratch_bucket_arn = var.hpc_resource_provisioner_scratch_bucket_arn
325325
private_alb_https_listener_arn = local.private_alb_https_listener_arn
326-
sboinfrastructureassets_bucket_name = var.sbo_infrastructureassets_bucket
326+
infrastructureassets_bucket_name = var.infrastructureassets_bucket
327327
pcluster_ami_id = var.pcluster_ami_id
328328
}
329329

production.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ core_web_app_deployment_env = "production"
6868
core_web_app_next_public_matomo_site_id = "1"
6969

7070
hpc_resource_provisioner_sbo_nexusdata_bucket = ""
71-
sbo_infrastructureassets_bucket = "s3://sboinfrastructureassets"
71+
infrastructureassets_bucket = "s3://sboinfrastructureassets"
7272
hpc_resource_provisioner_containers_bucket = ""
7373
hpc_resource_provisioner_scratch_bucket = ""
7474
hpc_resource_provisioner_scratch_bucket_arn = ""

sandbox-benchmarks.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ nise_dockerhub_password = "placeholder"
6262
ec_apikey2 = "placeholder"
6363

6464
hpc_resource_provisioner_sbo_nexusdata_bucket = "s3://sbonexusdata-sandbox-benchmarks"
65-
sbo_infrastructureassets_bucket = "s3://sboinfrastructureassets-sandbox-benchmarks"
65+
infrastructureassets_bucket = "s3://sboinfrastructureassets-sandbox-benchmarks"
6666
hpc_resource_provisioner_containers_bucket = "s3://sboinfrastructureassets-sandbox-benchmarks/containers"
6767
hpc_resource_provisioner_scratch_bucket = "s3://sbosandbox-cn6l7t"
6868
hpc_resource_provisioner_scratch_bucket_arn = "arn:aws:s3:::sbosandbox-cn6l7t"

sandbox-hpc.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ nise_dockerhub_password = "placeholder"
6767
ec_apikey2 = "placeholder"
6868

6969
hpc_resource_provisioner_sbo_nexusdata_bucket = "s3://sbonexusdata-sandbox"
70-
sbo_infrastructureassets_bucket = "s3://sboinfrastructureassets-sandbox"
70+
infrastructureassets_bucket = "s3://sboinfrastructureassets-sandbox"
7171
hpc_resource_provisioner_containers_bucket = "s3://sboinfrastructureassets-sandbox/containers"
7272
hpc_resource_provisioner_scratch_bucket = "s3://sbosandbox-lec3cn"
7373
hpc_resource_provisioner_scratch_bucket_arn = "arn:aws:s3:::sbosandbox-lec3cn"

staging.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ core_web_app_deployment_env = "staging"
5757
core_web_app_next_public_matomo_site_id = "3"
5858

5959
hpc_resource_provisioner_sbo_nexusdata_bucket = ""
60-
sbo_infrastructureassets_bucket = "s3://sboinfrastructureassets-staging"
60+
infrastructureassets_bucket = "s3://sboinfrastructureassets-staging"
6161
hpc_resource_provisioner_containers_bucket = ""
6262
hpc_resource_provisioner_scratch_bucket = ""
6363
hpc_resource_provisioner_scratch_bucket_arn = ""

0 commit comments

Comments
 (0)