acoustic-spring-42110
06/23/2022, 6:06 PMaws.appautoscaling.Target
, an aws.appautoscaling.Policy
that's set to StepScaling
and a aws.cloudwatch.MetricAlarm
that has its alarmActions
set to the ARN of the policy... pulumi compiles just fine, I see the resources in the stack.. but like.. I DONT see the autoscaling policy attached to the cluster in the AWS console and I'm not totally sure why. I've been staring at this for a couple hours, so I'm just kinda stepping away to clear my head before I jump back to it.little-book-13693
06/23/2022, 6:56 PMlittle-book-13693
06/23/2022, 6:56 PMif "my_output_value" in stack_reference.outputs:
little-book-13693
06/23/2022, 6:56 PMlittle-book-13693
06/23/2022, 6:58 PMlittle-book-13693
06/23/2022, 7:01 PMif "foo" in outputs:
TypeError: argument of type 'Output' is not iterable
happy-raincoat-89168
06/23/2022, 7:51 PMconst cluster = new eks.Cluster('dev-exp-pulumi', {...cluster settings...});
and then later on in the file after adding a few other resources I deploy a manifest.
const provider = new k8s.Provider("provider", {
kubeconfig: cluster.kubeconfig,
});
const flux = new k8s.yaml.ConfigFile("flux-static", { file: "./files/flux_static.yaml" }, { provider });
This gives me the following error trying to build the stack from nothing:
pulumi:pulumi:Stack (pulumi-eks-experiment-dev-exp-pulumi):
error: TypeError: Cannot read property 'map' of undefined
at pulumi-eks-experiment/node_modules/@pulumi/yaml/yaml.ts:2993:14
at processTicksAndRejections (internal/process/task_queues.js:97:5)
but if I comment out the const flux = …
line and deploy the stack then the cluster is deployed successfully and then if I uncomment the const flux = …
line and run it again, the ConfigFile
is deployed successfully.
I suspect it’s something I’m missing with the Output<>
and Input<>
stuff, but the error doesn’t seem to match the code. What’s causing my error?mysterious-hamburger-19066
06/23/2022, 9:32 PMrich-agency-75207
06/24/2022, 8:26 AMFn::ReadFile
to pull in a custom kubeconfig (as part of a custom k8s provider definition)
Consequently - I need to pull the CA from the active gke cluster. E.G. ${xxx.cluster.masterAuth.clusterCaCertificate}
Does anyone know if it is possible to substitute read data with this. E.G. Include ${scoped gke ca property} in file --> substitute when consuming.rich-agency-75207
06/24/2022, 8:27 AMkubeconfig: |
apiVersion: v1
clusters:
...
This momentarily worked when I defined this way. Then, a few hours later, pulumi cli started to error. i.e. it worked w/o issue but now it does not:
error: receiver must be a list or object, not nili
receiver must be a list or object, not nil
error: an unhandled error occurred: waiting for RPCs: marshaling properties: awaiting input property kubeconfig: runtime error
calm-horse-33012
06/24/2022, 8:46 AMpulumi import --tag XXX
and just have it import all resources with the given tag 🤯damp-honey-93158
06/24/2022, 8:55 AMloud-carpenter-77875
06/24/2022, 10:13 AMloud-carpenter-77875
06/24/2022, 10:13 AMmost-mouse-38002
06/24/2022, 10:28 AMpulumi down
I would like for Pulumi to just ignore resources inside the cluster as the entire cluster is going to be terminated regardless of internal state. I tried adding RetainOnDelete(true)
but it appears to not do what I hoped it would. What is the best approach here? Code in comment.icy-jordan-58549
06/24/2022, 10:32 AMdebug: Determining which Resource Providers require Registration
debug: All required Resource Providers are registered
error: an unhandled error occurred: Program exited with non-zero exit code: -1
high-piano-3034
06/24/2022, 2:31 PMwonderful-library-99760
06/24/2022, 3:06 PMincalculable-thailand-44404
06/25/2022, 3:01 AMkubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release> (eks-datadog-agent):
error: can't create Helm Release with unreachable cluster: unable to load schema information from the API server: the server has asked for the client to provide credentials
Looking for some guidance here!ancient-car-89914
06/25/2022, 8:30 AMpulumi up
doesn’t try to create it again?brief-spoon-92183
06/25/2022, 3:01 PMfancy-spoon-7206
06/25/2022, 8:44 PMfunc TestVpc(t *testing.T) {
awsRegion := "us-east-1"
cwd, _ := os.Getwd()
integration.ProgramTest(t, &integration.ProgramTestOptions{
Quick: true,
SkipRefresh: true,
Dir: path.Join(cwd, "..", "..", "aep-base-infra"),
Config: map[string]string{
"aws:region": awsRegion,
},
})
}
Error:
➜ resources (main) ✗ go test ./...
panic: proto: duplicate enum registered: pulumirpc.EnforcementLevel
goroutine 1 [running]:
<http://github.com/golang/protobuf/proto.RegisterEnum({0x101cb7b88|github.com/golang/protobuf/proto.RegisterEnum({0x101cb7b88>, 0x1a}, 0x14000359a10?, 0x140003599e0?)
/Users/dinesh.auti/go/pkg/mod/github.com/golang/protobuf@v1.4.3/proto/registry.go:104 +0xb8
<http://github.com/pulumi/pulumi/sdk/v2/proto/go.init.0()|github.com/pulumi/pulumi/sdk/v2/proto/go.init.0()>
/Users/dinesh.auti/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.25.2/proto/go/analyzer.pb.go:963 +0x44
exit status 2
FAIL <http://github.com/aetion/aep-base-infra/internal/resources|github.com/aetion/aep-base-infra/internal/resources> 0.393s
Has anyone seen this before?
I am using Pulumi version 3.35.1fancy-spoon-7206
06/27/2022, 4:19 AMUp
function.
func main() {
ctx := context.Background()
//stackName := auto.FullyQualifiedStackName("dinesh", "infrax", "test")
workDir := filepath.Join(".")
s, err := auto.UpsertStackLocalSource(ctx, "sandbox", workDir)
if err != nil {
log.Fatalln(err)
}
// -- pulumi up --
_, err = s.Up(ctx)
if err != nil {
log.Fatalln(err)
}
}
The error is about the stack being locked by another process. I am pretty sure no other process is touching the current stack. Any insights?
➜ infrax go run .
2022/06/27 00:14:15 failed to run update: exit status 255
code: 255
stdout: Updating (sandbox):
pulumi:pulumi:Stack base-infra-sandbox 2022/06/27 00:14:15 failed to create stack: exit status 255
pulumi:pulumi:Stack base-infra-sandbox code: 255
pulumi:pulumi:Stack base-infra-sandbox stdout:
pulumi:pulumi:Stack base-infra-sandbox stderr: error: could not create stack: the stack is currently locked by 1 lock(s). Either wait for the other process(es) to end or manually delete the lock file(s).
pulumi:pulumi:Stack base-infra-sandbox file:///Users/dinesh.auti/.pulumi/locks/sandbox/ae44c2ff-1d8c-4288-925e-a5302c5b9808.json: created by dinesh.auti@MacBook-Pro.local (pid 8398) at 2022-06-27T00:14:11-04:00
pulumi:pulumi:Stack base-infra-sandbox exit status 1
pulumi:pulumi:Stack base-infra-sandbox error: an unhandled error occurred: program exited with non-zero exit code: 1
pulumi:pulumi:Stack base-infra-sandbox **failed** 1 error; 6 messages
Diagnostics:
pulumi:pulumi:Stack (base-infra-sandbox):
2022/06/27 00:14:15 failed to create stack: exit status 255
code: 255
stdout:
stderr: error: could not create stack: the stack is currently locked by 1 lock(s). Either wait for the other process(es) to end or manually delete the lock file(s).
file:///Users/dinesh.auti/.pulumi/locks/sandbox/ae44c2ff-1d8c-4288-925e-a5302c5b9808.json: created by dinesh.auti@MacBook-Pro.local (pid 8398) at 2022-06-27T00:14:11-04:00
exit status 1
error: an unhandled error occurred: program exited with non-zero exit code: 1
great-midnight-49300
06/27/2022, 6:21 AMpulumi stack export | pulumi stack import
to get ride of pending operations, the configuration of the stack was deleted. How to prevent this?wet-noon-14291
06/27/2022, 8:55 AMquiet-laptop-13439
06/27/2022, 2:22 PMTarget 'urn:XXX' could not be found in the stack
error when trying to apply resource. However, we can see the resource with the urn both in the state and AWS console. What could that mean and what could be the fix?rapid-raincoat-36492
06/27/2022, 10:46 PMcheckpoint
used as the top level key in a statefile (https://github.com/pulumi/pulumi/blob/master/pkg/resource/stack/checkpoint.go) as opposed to a deployment
key (https://github.com/pulumi/pulumi/blob/master/pkg/resource/stack/deployment.go), and what is the difference?steep-toddler-94095
06/27/2022, 10:50 PMcuddly-ice-6853
06/28/2022, 7:18 AMhandsome-sugar-38905
06/28/2022, 8:35 AM