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

feat(cdktf): use 1Password for secrets management #2055

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

jon77p
Copy link
Owner

@jon77p jon77p commented Dec 30, 2023

No description provided.

Copy link
Contributor

❌ Error planning Terraform CDK Stack 'cdktf'

🌍 View run

Error: The process '/usr/local/bin/npx' failed with exit code 1
npm WARN deprecated @npmcli/[email protected]: this package has been deprecated, use `ci-info` instead
#######################################################################################################
### You are currently using [email protected]. We recommend upgrading to [email protected] or       ###
### later. This will allow you to use modern TypeScript syntax, and improves compatibility with     ###
### many common dependencies. For example, recent versions of @types/node.                          ###
###                                                                                                 ###
### 5.0.x and subsequent releases of jsii-rosetta use the same major.minor version as the           ###
### TypeScript compiler they are built on. We recommend declaring a minor-pinned (also known as     ###
### "tilde") dependency on jsii-rosetta (e.g: `"jsii-rosetta": "5.0.x"` or                          ###
### `"jsii-rosetta": "~5.0.7"`).                                                                    ###
###                                                                                                 ###
### For more information, see: https://aws.github.io/jsii/compiler-and-rosetta-maintenance/         ###
###                                                                                                 ###
### This warning can be suppressed by setting the JSII_SUPPRESS_UPGRADE_PROMPT environment variable ###
#######################################################################################################
cdktf  Creating Terraform Cloud configuration version
cdktf  Created Terraform Cloud configuration version cv-EUwuFg5NDKXhdNSw
cdktf  Zipping up the directory cdktf.out/stacks/cdktf
cdktf  Uploading the directory to Terraform Cloud
cdktf  Uploaded the directory to Terraform Cloud
cdktf  Waiting for configuration version to become ready...
cdktf  Creating speculative Terraform Cloud run
cdktf  Created speculative Terraform Cloud run: https://app.terraform.io/app/jon77p-xyz/workspaces/infrastructure/runs/run-CT7fawrxknit73C9
cdktf  Speculative Terraform Cloud run done
�[33m[2023-12-30T03:08:16.124] [WARN] default - �[39mError in Plan: {}

⠇  Processing
External Error: Stack failed to plan: cdktf. Please check the logs for more information.

Copy link
Contributor

github-actions bot commented Dec 30, 2023

✅ Successfully planned Terraform CDK Stack 'cdktf'

Show Plan
cdktf  Initializing Terraform Cloud...
cdktf  Initializing provider plugins...
       - Finding hashicorp/null versions matching "3.2.2"...
cdktf  - Installing hashicorp/null v3.2.2...
cdktf  - Installed hashicorp/null v3.2.2 (signed by HashiCorp)

       Terraform has created a lock file .terraform.lock.hcl to record the provider
       selections it made above. Include this file in your version control repository
       so that Terraform can guarantee to make the same selections by default when
       you run "terraform init" in the future.
cdktf  Terraform Cloud has been successfully initialized!

       You may now begin working with Terraform Cloud. Try running "terraform plan" to
       see any changes that are required for your infrastructure.

       If you ever set or change modules or Terraform Settings, run "terraform init"
       again to reinitialize your working directory.
cdktf  - Fetching hashicorp/null 3.2.2 for linux_amd64...
cdktf  - Retrieved hashicorp/null 3.2.2 for linux_amd64 (signed by HashiCorp)
       - Obtained hashicorp/null checksums for linux_amd64; All checksums for this platform were already tracked in the lock file
cdktf  Success! Terraform has validated the lock file and found no need for changes.
cdktf  Running plan in Terraform Cloud. Output will stream here. Pressing Ctrl-C
       will stop streaming the logs, but will not stop the plan running remotely.

       Preparing the remote plan...
cdktf  To view this run in a browser, visit:
       https://app.terraform.io/app/jon77p-xyz/infrastructure/runs/run-5xr5b1rKqPgHEHsa
cdktf  Waiting for the plan to start...
cdktf  Terraform v1.6.6
       on linux_amd64
       Initializing plugins and modules...
cdktf  null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install): Refreshing state... [id=8958615944952461108]
cdktf  Terraform used the selected providers to generate the following execution
       plan. Resource actions are indicated with the following symbols:
       -/+ destroy and then create replacement

       Terraform will perform the following actions:

         # null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install) is tainted, so must be replaced
       -/+ resource "null_resource" "cdktf_1password-install_FFB7C3BE" {
             ~ id = "8958615944952461108" -> (known after apply)
           }

       Plan: 1 to add, 0 to change, 1 to destroy.
cdktf  Post-plan Tasks:
cdktf  All tasks completed! 1 passed, 0 failed           (4s elapsed)

       │ Snyk ⸺   Passed
       │ No issues found.
       Severity threshold is set to low.
       │ Details: https://app.snyk.io/org/jon77p/project/0fe83cb2-98ca-4577-b078-fd048f4c1e02/history/6b40003a-47e1-4e0b-8ef4-e9fec026910b
       │
       │
       │ Overall Result: Passed

       ------------------------------------------------------------------------
cdktf  ------------------------------------------------------------------------

       Cost Estimation:
cdktf  Resources: 0 of 0 estimated
                  $0.0/mo +$0.0

       ─────────────────────────────────────────────────────────────────────────────

       Note: You didn't use the -out option to save this plan, so Terraform can't
       guarantee to take exactly these actions if you run "terraform apply" now.

@jon77p jon77p force-pushed the feat/cdktf-1password branch from e48ca53 to a0666dc Compare December 30, 2023 03:15
@jon77p jon77p force-pushed the feat/cdktf-1password branch from a0666dc to f57d7e3 Compare December 30, 2023 03:19
Copy link
Contributor

github-actions bot commented Dec 30, 2023

❌ Error applying Terraform CDK Stack 'cdktf'

Error: The process '/usr/local/bin/npx' failed with exit code 1
cdktf  Initializing Terraform Cloud...
cdktf  Initializing provider plugins...
       - Finding hashicorp/null versions matching "3.2.2"...
cdktf  - Installing hashicorp/null v3.2.2...
cdktf  - Installed hashicorp/null v3.2.2 (signed by HashiCorp)

       Terraform has created a lock file .terraform.lock.hcl to record the provider
       selections it made above. Include this file in your version control repository
       so that Terraform can guarantee to make the same selections by default when
       you run "terraform init" in the future.
cdktf  Terraform Cloud has been successfully initialized!

       You may now begin working with Terraform Cloud. Try running "terraform plan" to
       see any changes that are required for your infrastructure.

       If you ever set or change modules or Terraform Settings, run "terraform init"
       again to reinitialize your working directory.
cdktf  - Fetching hashicorp/null 3.2.2 for linux_amd64...
cdktf  - Retrieved hashicorp/null 3.2.2 for linux_amd64 (signed by HashiCorp)
       - Obtained hashicorp/null checksums for linux_amd64; All checksums for this platform were already tracked in the lock file
cdktf  Success! Terraform has validated the lock file and found no need for changes.
cdktf  Running apply in Terraform Cloud. Output will stream here. Pressing Ctrl-C
       will cancel the remote apply if it's still pending. If the apply started it
       will stop streaming the logs, but will not stop the apply running remotely.

       Preparing the remote apply...
cdktf  To view this run in a browser, visit:
       https://app.terraform.io/app/jon77p-xyz/infrastructure/runs/run-8TNPQKeHGcRYkXQt
cdktf  Waiting for the plan to start...
cdktf  Terraform v1.6.6
       on linux_amd64
cdktf  Initializing plugins and modules...
cdktf  null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install): Refreshing state... [id=8958615944952461108]
cdktf  Terraform used the selected providers to generate the following execution plan.
       Resource actions are indicated with the following symbols:
       -/+ destroy and then create replacement

       Terraform will perform the following actions:
cdktf  # null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install) is tainted, so must be replaced
       -/+ resource "null_resource" "cdktf_1password-install_FFB7C3BE" {
             ~ id = "8958615944952461108" -> (known after apply)
           }

       Plan: 1 to add, 0 to change, 1 to destroy.
cdktf  Post-plan Tasks:
cdktf  All tasks completed! 1 passed, 0 failed           (4s elapsed)

       │ Snyk ⸺   Passed
       │ No issues found.
       Severity threshold is set to low.
       │ Details: https://app.snyk.io/org/jon77p/project/0fe83cb2-98ca-4577-b078-fd048f4c1e02/history/d5458588-272c-43ab-b9e5-0f246c2fa7ae
cdktf  │

       │ Overall Result: Passed

       ------------------------------------------------------------------------
cdktf  ------------------------------------------------------------------------

       Cost Estimation:

       Resources: 0 of 0 estimated
                  $0.0/mo +$0.0
cdktf  ------------------------------------------------------------------------
cdktf
cdktf  null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install): Destroying... [id=8958615944952461108]
       null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install): Destruction complete after 0s
       null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install): Creating...
       null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install): Provisioning with 'local-exec'...
       null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install): (local-exec): Executing: ["/bin/sh" "-c" "curl -sSfo op.zip \"https://cache.agilebits.com/dist/1P/op2/pkg/v[object Promise]/op_linux_amd64_v[object Promise].zip\" && unzip -od /usr/local/bin/ op.zip && rm op.zip"]
       null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install): (local-exec): curl: (3) bad range in URL position 47:
       null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install): (local-exec): https://cache.agilebits.com/dist/1P/op2/pkg/v[object Promise]/op_linux_amd64_v[object Promise].zip
       null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install): (local-exec):                                               ^
cdktf  ╷
       │ Error: local-exec provisioner error

       │   with null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install),
       │   on cdk.tf.json line 47, in resource.null_resource.cdktf_1password-install_FFB7C3BE (cdktf/1password-install).provisioner[0].local-exec:
       │   47:             }

       │ Error running command 'curl -sSfo op.zip
       │ "https://cache.agilebits.com/dist/1P/op2/pkg/v[object
       │ Promise]/op_linux_amd64_v[object Promise].zip" && unzip -od /usr/local/bin/
       │ op.zip && rm op.zip': exit status 3. Output: curl: (3) bad range in URL
       │ position 47:
       │ https://cache.agilebits.com/dist/1P/op2/pkg/v[object
       │ Promise]/op_linux_amd64_v[object Promise].zip
       │                                               ^


cdktf  Operation failed: failed running terraform apply (exit 1)


0 Stacks deploying     1 Stack done     0 Stacks waiting
Invoking Terraform CLI failed with exit code 1

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