Skip to content

CodeBuild project aws-sce-tf-community-ue1-dependency-builder fails during first terraform apply #7

@atheiman

Description

@atheiman

CodeBuild project aws-sce-tf-community-ue1-dependency-builder fails during first terraform apply. I am calling the module in us-east-1 with no arguments:

module "svc_ctlg_engine" {
  source = "github.com/aws-ia/terraform-aws-sce-tf-community?ref=40cb97f14591c58d0182385be237b19d5b49f923"
}

CodeBuild failure:

[Container] 2024/11/25 04:13:04.768106 Running command aws s3 cp s3://aws-sce-tf-community-ue1-<acctid>-tf-state/build/src/terraform-parameter-parser.zip .
40 | fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden
41 |  
42 | [Container] 2024/11/25 04:13:14.144218 Command did not exit successfully aws s3 cp s3://aws-sce-tf-community-ue1-<acctid>-tf-state/build/src/terraform-parameter-parser.zip . exit status 1
43 | [Container] 2024/11/25 04:13:14.148430 Phase complete: INSTALL State: FAILED
44

What is supposed to upload object s3://aws-sce-tf-community-ue1-<acctid>-tf-state/build/src/terraform-parameter-parser.zip before this CodeBuild project consumes it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions