Skip to content

Commit

Permalink
changed to s3 object
Browse files Browse the repository at this point in the history
  • Loading branch information
markgov committed Nov 15, 2024
1 parent 18be815 commit 80d359c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions organisation-security/terraform/license-manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ module "oracle_ec2_license_configurations" {
}

# Upload the YAML file to the existing S3 bucket
resource "aws_s3_bucket_object" "oracle_db_lts_orchestrate" {
resource "aws_s3_object" "oracle_db_lts_orchestrate_upload" {
bucket = "license-manager-artifact-bucket" # Existing S3 bucket name
key = "OracleDbLTS-Orchestrate.yaml"
source = file("${path.module}/cloudformation/OracleDbLTS-Orchestrate.yaml")
source = filemd5("${path.module}/cloudformation/OracleDbLTS-Orchestrate.yaml")
acl = "private"
}

Expand All @@ -68,7 +68,7 @@ resource "aws_cloudformation_stack" "oracleblts" {
MaxErrors = 4
Schedule = "cron(15 0 ? * MON *)"
}
template_url = "https://${aws_s3_bucket_object.oracle_db_lts_orchestrate.bucket}.s3.eu-west-2.amazonaws.com/${aws_s3_bucket_object.oracle_db_lts_orchestrate.key}"
template_url = "https://${aws_s3_object.oracle_db_lts_orchestrate.bucket}.s3.eu-west-2.amazonaws.com/${aws_s3_object.oracle_db_lts_orchestrate.key}"

depends_on = [
module.oracle_ec2_license_configurations
Expand Down

0 comments on commit 80d359c

Please sign in to comment.