Skip to content

Commit

Permalink
removed bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
keithrozario committed Jun 2, 2024
1 parent f154429 commit f6e0a71
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions pipeline/Terraform/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,25 +121,3 @@ resource "aws_s3_bucket_lifecycle_configuration" "ddb_backup_bucket_config" {
status = "Enabled"
}
}

# Website bucket

resource "aws_s3_bucket" "website_bucket" {
force_destroy = true
}

resource "aws_ssm_parameter" "website_bucket_name" {
type = "String"
description = "Name of s3 bucket to hold website"
name = "/${var.app_name}/${local.workspace_full_name}/website_bucket/name"
value = aws_s3_bucket.website_bucket.bucket
}

resource "aws_s3_bucket_public_access_block" "website_bucket" {
bucket = aws_s3_bucket.website_bucket.id

block_public_acls = true
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true
}

0 comments on commit f6e0a71

Please sign in to comment.