Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: cache location is required when cache type is "S3" #96

Closed
calvin-barker opened this issue Jun 17, 2021 · 3 comments
Closed

Error: cache location is required when cache type is "S3" #96

calvin-barker opened this issue Jun 17, 2021 · 3 comments
Labels
bug 🐛 An issue with the system

Comments

@calvin-barker
Copy link

calvin-barker commented Jun 17, 2021

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

Terraform plan is failing on Terraform v1.0.0 with Error: cache location is required when cache type is "S3"

Expected Behavior

It should not be failing to create the CodeBuild resource

Steps to Reproduce

1.) I initialize a module:

module "build" {
  source     = "cloudposse/cicd/aws"
  attributes = (concat(var.attributes, ["codepipeline"]))
  namespace  = var.namespace
  stage      = var.stage
  name       = var.name
  enabled    = var.codepipeline_enabled

  # Application repository on GitHub
  github_oauth_token = var.codepipeline_github_token
  repo_owner         = var.codepipeline_repo_owner
  repo_name          = var.codepipeline_repo_name
  branch             = var.codepipeline_branch
}

2.) I commit and push.

3.) Terraform Cloud gives this error:

│ Error: cache location is required when cache type is "S3"
│ 
│   with module.landing_page.module.build.module.codebuild.aws_codebuild_project.default[0],
│   on .terraform/modules/landing_page.build.codebuild/main.tf line 265, in resource "aws_codebuild_project" "default":265: resource "aws_codebuild_project" "default" {
│ 
╵

Environment (please complete the following information):

Using Terraform v1.0.0 in Terraform Cloud

@calvin-barker calvin-barker added the bug 🐛 An issue with the system label Jun 17, 2021
@aidan-mcarthur
Copy link

Getting this too. Looks like the codebuild module being used is out of date (0.33.0)

@nitrocode
Copy link
Member

Hopefully this is closed by this PR #95

@nitrocode
Copy link
Member

@aidan-mcarthur @calvin-barker please retry using the latest module version and comment back if this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

3 participants