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

Update outputs.tf #399

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update outputs.tf #399

wants to merge 1 commit into from

Conversation

Daniellem97
Copy link
Owner

No description provided.

Copy link

spacelift-io bot commented Dec 19, 2024

This run failed during the PLANNING phase. For more details, you can review the run here:

Logs [01JFEY555RY18P7S2VWX2Q3N0S] Planning changes with 0 custom hooks... data.terraform_remote_state.demo-stack-state: Reading... data.terraform_remote_state.demo-stack-state: Read complete after 1s

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:

  • create

Terraform planned the following actions, but then encountered a problem:

module.terraform-default-multimodule.random_uuid.other will be created

  • resource "random_uuid" "other" {
    • id = (known after apply)
    • keepers = {
      • "version" = "1"
        }
    • result = (known after apply)
      }

module.terraform-default-multimodule.random_uuid.that will be created

  • resource "random_uuid" "that" {
    • id = (known after apply)
    • keepers = {
      • "version" = "1"
        }
    • result = (known after apply)
      }

module.terraform-default-multimodule.random_uuid.this will be created

  • resource "random_uuid" "this" {
    • id = (known after apply)
    • keepers = {
      • "version" = "1"
        }
    • result = (known after apply)
      }

Plan: 3 to add, 0 to change, 0 to destroy.

Changes to Outputs:

  • dev_i3 = "test1"
  • dev_ip1 = "test1"
  • dev_ip3 = "test1"
  • projects = {
    • test1 = {
      • id = "test1name"
      • id_full = "full_id"
      • number = "12345"
        }
    • test2 = {
      • id = "test2name"
      • id_full = "full_id"
      • number = "67890"
        }
        }

        │ Error: Missing required argument

        │ on providers.tf line 10, in provider "aws":
        │ 10: provider "aws" {

        │ The argument "region" is required, but no definition was found.

        [01JFEY555RY18P7S2VWX2Q3N0S] Unexpected exit code when planning changes: 1

Copy link

spacelift-io bot commented Dec 19, 2024

This run failed during the PLANNING phase. For more details, you can review the run here:

Logs [01JFDXE14D3WQ89DPP1VEPMB6W] Planning changes with 0 custom hooks... data.terraform_remote_state.demo-stack-state: Reading... ╷ │ Error: Error loading state error │ │ with data.terraform_remote_state.demo-stack-state, │ on datasources.tf line 12, in data "terraform_remote_state" "demo-stack-state": │ 12: backend = "remote" │ │ error loading the remote state: Error creating workspace demo-stack: cannot │ create a workspace ╵ ╷ │ Error: Missing required argument │ │ on providers.tf line 10, in provider "aws": │ 10: provider "aws" { │ │ The argument "region" is required, but no definition was found. ╵ [01JFDXE14D3WQ89DPP1VEPMB6W] Unexpected exit code when planning changes: 1

Copy link

spacelift-io bot commented Dec 19, 2024

This run failed during the PLANNING phase. For more details, you can review the run here:

Logs [01JFDXE14D3WQ89DPP1VEPMB6W] Planning changes with 0 custom hooks... data.terraform_remote_state.demo-stack-state: Reading... ╷ │ Error: Error loading state error │ │ with data.terraform_remote_state.demo-stack-state, │ on datasources.tf line 12, in data "terraform_remote_state" "demo-stack-state": │ 12: backend = "remote" │ │ error loading the remote state: Error creating workspace demo-stack: cannot │ create a workspace ╵ ╷ │ Error: Missing required argument │ │ on providers.tf line 10, in provider "aws": │ 10: provider "aws" { │ │ The argument "region" is required, but no definition was found. ╵ [01JFDXE14D3WQ89DPP1VEPMB6W] Unexpected exit code when planning changes: 1

@spacelift-daniellem97space
Copy link

debugtest plan logs

Click here to expand
[01JFEFJNHTYVN5FY1M5TPZSKT8] Planning changes with 1 custom hook...
[01JFEFJNHTYVN5FY1M5TPZSKT8] Running command: sh [-c spacelift-worker env >> /mnt/workspace/.env_hooks_before && echo "config.yml" && tofu plan -input=false -lock=false -out=spacelift.plan && spacelift-worker env >> /mnt/workspace/.env_hooks_after]
config.yml
data.terraform_remote_state.demo-stack-state: Reading...
module.terraform-default-multimodule.random_uuid.that: Refreshing state... [id=443fd3e6-837c-3cdc-39c9-87e22c580860]
module.terraform-default-multimodule.random_uuid.this: Refreshing state... [id=0b8b0261-1fff-1e06-4f99-144f22ceb7ec]
module.terraform-default-multimodule.random_uuid.other: Refreshing state... [id=7f403546-a52f-7acf-aee9-08a357e12072]
data.terraform_remote_state.demo-stack-state: Read complete after 0s
aws_vpc.mtc_vpc3: Refreshing state... [id=vpc-097845eb85aedf070]
aws_vpc.mtc_vpc6: Refreshing state... [id=vpc-0dd41a082c8b356d8]
aws_vpc.mtc_vpc5: Refreshing state... [id=vpc-077970eba1b9bc2ae]
aws_vpc.mtc_vpc2: Refreshing state... [id=vpc-071c5f180768bfcf6]
aws_vpc.mtc_vpc4: Refreshing state... [id=vpc-0e69036197b298b17]
aws_vpc.mtc_vpc9: Refreshing state... [id=vpc-075229ef6220b7194]
data.aws_ami.server_ami: Reading...
aws_vpc.mtc_vpc7: Refreshing state... [id=vpc-0c7072147a3059415]
aws_vpc.mtc_vpc8: Refreshing state... [id=vpc-0607535f012b9f87c]
aws_vpc.mtc_vpc10: Refreshing state... [id=vpc-0633ceba640679f42]
data.aws_ami.server_ami: Read complete after 1s [id=ami-09563a10670fc573c]
aws_cloudfront_function.example: Refreshing state... [id=example-request-handler]
aws_vpc.mtc_vpc: Refreshing state... [id=vpc-0fa4697f94971fc28]
aws_vpc.mtc_vpc1: Refreshing state... [id=vpc-080d98686629bb5b3]
aws_internet_gateway.mtc_internet_gateway: Refreshing state... [id=igw-009541f2876b533fd]
aws_security_group.mtc_sg: Refreshing state... [id=sg-04239ca9c80d5e63b]
aws_subnet.mtc_public_subnet: Refreshing state... [id=subnet-00e4b2acf727b6cb3]
aws_route_table.mtc_public_rt: Refreshing state... [id=rtb-00e807c3ddbda8a36]
aws_route.default_route2: Refreshing state... [id=r-rtb-00e807c3ddbda8a361080289494]
aws_route_table_association.mtc_public_assoc: Refreshing state... [id=rtbassoc-00484e040c376be78]
aws_route.default_route: Refreshing state... [id=r-rtb-00e807c3ddbda8a361080289494]

Changes to Outputs:
  + dev_i3        = "test1"

You can apply this plan to save these new output values to the OpenTofu
state, without changing any real infrastructure.
[01JFEFJNHTYVN5FY1M5TPZSKT8] Changes are GO
[01JFEFJNHTYVN5FY1M5TPZSKT8] Running command: sh [-c tofu show -json]
[01JFEFJNHTYVN5FY1M5TPZSKT8] Uploading the list of managed resources...
[01JFEFJNHTYVN5FY1M5TPZSKT8] Running command: sh [-c tofu show -json "spacelift.plan"]
[01JFEFJNHTYVN5FY1M5TPZSKT8] Running command: sh [-c tofu output -json]
[01JFEFJNHTYVN5FY1M5TPZSKT8] Please be aware that the run changes calculation includes output changes.
[01JFEFJNHTYVN5FY1M5TPZSKT8] Resource list upload is GO
[01JFEFJNHTYVN5FY1M5TPZSKT8] Generating JSON representation of the plan...
[01JFEFJNHTYVN5FY1M5TPZSKT8] Running command: sh [-c tofu show -json "spacelift.plan"]
[01JFEFJNHTYVN5FY1M5TPZSKT8] JSON representation is GO
[01JFEFJNHTYVN5FY1M5TPZSKT8] Loading custom plan policy inputs...
[01JFEFJNHTYVN5FY1M5TPZSKT8] 0 custom plan policy inputs found
[01JFEFJNHTYVN5FY1M5TPZSKT8] Evaluated 1 plan policy
[01JFEFJNHTYVN5FY1M5TPZSKT8] Plan checks are GO

@spacelift-daniellem97space
Copy link

This run finished successfully, you can review the resource changes below:

Run Type: PROPOSED

Run state: FINISHED

Resource changes (link)

add change destroy import move forget

Action Resource Changes

Policy Information

Policy Name Policy Type Outcome
plan - warn true PLAN ✅ allow

@spacelift-daniellem97space
Copy link

Run Summary
Added: 0
Changed: 0
Destroyed: 0
Imported: 0
Moved: 0
Forgotten: 0

Action Resource

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 this pull request may close these issues.

1 participant