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

bug: terraform plan layer2-aws error #304

Closed
3 tasks done
sviatoslav6 opened this issue Oct 3, 2022 · 0 comments · Fixed by #305
Closed
3 tasks done

bug: terraform plan layer2-aws error #304

sviatoslav6 opened this issue Oct 3, 2022 · 0 comments · Fixed by #305

Comments

@sviatoslav6
Copy link
Contributor

sviatoslav6 commented Oct 3, 2022

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Failure Information (for bugs)

Command terraform plan (after deploy layer1) in layer2-aws failed with error

 Error: Invalid index
   on eks-gitlab-runner.tf line 149, in resource "aws_s3_bucket_lifecycle_configuration" "gitlab_runner_lifecycle":
149: bucket = aws_s3_bucket.gitlab_runner_cache[0].id
 aws_s3_bucket.gitlab_runner_cache is empty tuple

The given key does not identify an element in this collection value: the collection has no elements

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

  1. Go to the terraform directory
cd terraform/layer2-aws
  1. Run command (after deploy layer1)
terraform plan

I got this error:

 Error: Invalid index
   on eks-gitlab-runner.tf line 149, in resource "aws_s3_bucket_lifecycle_configuration" "gitlab_runner_lifecycle":
149: bucket = aws_s3_bucket.gitlab_runner_cache[0].id
 aws_s3_bucket.gitlab_runner_cache is empty tuple

The given key does not identify an element in this collection value: the collection has no elements
sviatoslav6 added a commit that referenced this issue Oct 5, 2022
* fix: issue #304 layer2-aws terraform plan error

* issue #305 fix tfsec

* issue #305 fix tfsec

* issue #305 fix tfsec
p1gmale0n pushed a commit that referenced this issue Aug 24, 2023
* fix: issue #304 layer2-aws terraform plan error

* issue #305 fix tfsec

* issue #305 fix tfsec

* issue #305 fix tfsec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant