-
Notifications
You must be signed in to change notification settings - Fork 0
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
jon77p
wants to merge
9
commits into
main
Choose a base branch
from
feat/cdktf-1password
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❌ Error planning Terraform CDK Stack 'cdktf'Error: The process '/usr/local/bin/npx' failed with exit code 1npm 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.
|
✅ Successfully planned Terraform CDK Stack 'cdktf'Show Plancdktf 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
force-pushed
the
feat/cdktf-1password
branch
from
December 30, 2023 03:15
e48ca53
to
a0666dc
Compare
jon77p
force-pushed
the
feat/cdktf-1password
branch
from
December 30, 2023 03:19
a0666dc
to
f57d7e3
Compare
❌ Error applying Terraform CDK Stack 'cdktf'Error: The process '/usr/local/bin/npx' failed with exit code 1cdktf 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.