astonishing-librarian-23155
04/25/2023, 11:41 AMException: invoke of aws:eks/getCluster:getCluster failed: invocation of aws:eks/getCluster:getCluster returned an error: error reading from server: EOF
Any suggestions on how to get around this? Thanks
Note: I have imported eks as from pulumi_aws
def generate_cross_account_kubeconfig(cluster_name:str, role_arn: str):
eks_provider = Provider(
f"assume-role-{role_arn.split('/')[1]}",
assume_role = [
role_arn,
]
)
eks_cluster= eks.get_cluster(
name=cluster_name,
opts = pulumi.InvokeOptions(provider = eks_provider)
)
wooden-tailor-35438
04/26/2023, 1:44 AMbland-dog-47600
04/27/2023, 5:27 AM.ToSecret
accepts a raw value which I have to generate and store somewhere presumably.icy-controller-6092
04/27/2023, 6:58 AMfew-byte-52729
04/28/2023, 1:55 PMartifacts = docker.Image(
"artifacts-image",
build=docker.DockerBuildArgs(
context="./artifacts",
dockerfile="artifacts/Dockerfile",
),
image_name="artifacts",
skip_push=True
)
artifacts_container = ContainerArgs(
name="artifacts-container",
image=artifacts.image_name,
)
deployment = Deployment(
"backend",
metadata=backend_metadata,
spec=DeploymentSpecArgs(
replicas=1,
selector=app_selector,
template=PodTemplateSpecArgs(
metadata=backend_php_metadata,
spec=PodSpecArgs(
volumes=[
],
init_containers=[
artifacts_container,
],
containers=[
],
),
),
),
)
pulumi up
gives me the message warning: [Pod backend-95bd4bd6-5c4c5f594c-bqb8t]: containers with incomplete status: [artifacts-container]
kubectl describe pod backend-95bd4bd6-5c4c5f594c-bqb8t
shows the error Failed to pull image "artifacts": rpc error: code = Unknown desc = Error response from daemon: pull access denied for artifacts, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
but the image is shown by docker image ls
so it looks like it tries to get from some provider instead of locally. Is there a config somewhere to get images locally? https://github.com/pulumi/pulumi-docker/issues/148 was not really helpful or I must have missed something.future-library-15294
04/30/2023, 3:25 PMmysterious-hairdresser-82060
05/01/2023, 5:58 PMpulumi preview
, I see uncommitted changes to my recently created objects (usually S3 Buckets with the change diff: -serverSideEncryptionConfiguration
). When I run pulumi up
and then preview again, I still see the same uncommitted changes. I do not see any material difference in the S3 buckets themselves in the AWS UI or otherwise.
Does anyone know what is causing Pulumi to perceive the configuration for these resources to be different? I could not find any similar examples in these channels. Thanks!glamorous-family-11920
05/02/2023, 8:44 PMrough-morning-44013
05/02/2023, 11:51 PMsparse-intern-71089
05/03/2023, 10:56 PMable-energy-34495
05/04/2023, 8:44 PMbrainy-engineer-50929
05/05/2023, 7:17 AMbrainy-xylophone-11424
05/05/2023, 7:37 AMkind-house-12874
05/05/2023, 8:44 AMaws.Provider
is causing issues when trying to assume a role. I couldn’t get the provider working in my app and even If you run this example: https://github.com/pulumi/examples/tree/master/aws-ts-organizations you get an error:
└─ pulumi:providers:aws devAccountProvider 1 error
Diagnostics:
pulumi:providers:aws (devAccountProvider):
error: rpc error: code = Unavailable desc = error reading from server: EOF
pulumi:pulumi:Stack (aws-ts-organizations-examples):
panic: interface conversion: interface {} is resource.Computed, not resource.PropertyMap
goroutine 40 [running]:
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource.PropertyValue.ObjectValue(...)|github.com/pulumi/pulumi/sdk/v3/go/common/resource.PropertyValue.ObjectValue(...)>
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.64.0/go/common/resource/properties.go:435
<http://github.com/pulumi/pulumi-aws/provider/v5.preConfigureCallback(0x14002ca3b80|github.com/pulumi/pulumi-aws/provider/v5.preConfigureCallback(0x14002ca3b80>?, {0x140005ff320?, 0x14000c8a000?})
/home/runner/work/pulumi-aws/pulumi-aws/provider/resources.go:361 +0x920
<http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).CheckConfig(0x14002ca3b80|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).CheckConfig(0x14002ca3b80>, {0x112d29d88, 0x140005ff800}, 0x140005f6360)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.45.3/pkg/tfbridge/provider.go:327 +0x2a0
<http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_CheckConfig_Handler.func1({0x112d29d88|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_CheckConfig_Handler.func1({0x112d29d88>, 0x140005ff800}, {0x1123f2920?, 0x140005f6360})
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.64.0/proto/go/provider_grpc.pb.go:426 +0x74
<http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x112d29d88|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x112d29d88>, 0x140005fe630}, {0x1123f2920, 0x140005f6360}, 0x140005fc2c0, 0x14002e86870)
/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x30c
<http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_CheckConfig_Handler({0x112a211e0|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_CheckConfig_Handler({0x112a211e0>?, 0x14002ca3b80}, {0x112d29d88, 0x140005fe630}, 0x14002eb20e0, 0x14002db0820)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.64.0/proto/go/provider_grpc.pb.go:428 +0x138
<http://google.golang.org/grpc.(*Server).processUnaryRPC(0x140008303c0|google.golang.org/grpc.(*Server).processUnaryRPC(0x140008303c0>, {0x112d3b860, 0x14002fd8000}, 0x140004d6000, 0x14002defb60, 0x11b7a1cb8, 0x0)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.54.0/server.go:1345 +0xc64
<http://google.golang.org/grpc.(*Server).handleStream(0x140008303c0|google.golang.org/grpc.(*Server).handleStream(0x140008303c0>, {0x112d3b860, 0x14002fd8000}, 0x140004d6000, 0x0)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.54.0/server.go:1722 +0x82c
<http://google.golang.org/grpc.(*Server).serveStreams.func1.2()|google.golang.org/grpc.(*Server).serveStreams.func1.2()>
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.54.0/server.go:966 +0x84
created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.54.0/server.go:964 +0x290
Any help to move forward would be highly appreciated here! Thank you!most-arm-49724
05/05/2023, 4:32 PMError creating App: POST <https://api.digitalocean.com/v2/apps>: 400 (request "742db93e-8ca6-4ad6-98df-376a6de74385") Account does not have access to the repo
. My github is infact connected to my digital ocean cause that's how I've been creating apps so far and triggering auto deployments. Any idea on how to sort this? maybe the digital ocean api url is different? 🤔most-arm-49724
05/05/2023, 6:14 PMable-energy-34495
05/05/2023, 7:41 PMmammoth-caravan-43791
05/09/2023, 1:31 PMBotkube
, could anyone please share a pointer on how to set the parameters? https://docs.botkube.io/installation/slack#install-botkube-backend-in-kubernetes-clusterrhythmic-sunset-53997
05/15/2023, 2:05 PMpulumi.Config()
inside a dynamic provider class, but kept getting errors that the configuration is not defined (even though it is). Turns out this is a known issue (Slack thread here, GH issue here).
However, a Pulumi blog post says this should be possible:
Provider Credentials
If you need to use the credentials used by the rest of your Pulumi app, also known as the ambient provider credentials, you can access the relevant credentials (and other configuration) through theThe code that is not working for me is:where<provider>.config
is the imported provider module.provider
class AlertRuleProvider(ResourceProvider):
def create(self, props):
_es_username = Config('foobar').require('password')
when run:
error: Exception calling application: Missing required configuration variable 'foobar:password'
please set a value using the command `pulumi config set foobar:password <value>`
---
I don’t want to pass the credentials as a prop to the provider, because then it gets stored in the state file. On top of the security concerns, I expect there will be problems with this when the credentials expire and new ones need to be used. So what is the correct approach to interface with 3rdparty APIs from dynamic providers?
Thank youboundless-family-6080
05/16/2023, 10:11 AMkubectl create token <user-name>
You can find more details about the TokenRequest API Here: https://www.programmingwithwolfgang.com/use-the-tokenrequest-api-to-create-tokens-in-kubernetes/
How can I create such an token object via pulumi. I didn’t find anything in the examples repository ( https://github.com/pulumi/examples). Also the AI generated code tells me to apply the TokenRequest Object to the K8s Server, but I believe the TokenRequest is a read-only endpoint.
Thanks,
Patrick
PS: We are using TypeScript, so we would benefit from a TS example.bland-dog-47600
05/16/2023, 3:41 PMname
.
For example, gcp.Address
++gcp:compute/address:Address: (create-replacement)
[id=projects/sandbox-pulumi/regions/us-central1/addresses/retool-b629537]
[urn=urn:pulumi:sandbox::infra::gcp:compute/address:Address::retool]
~ name: "retool-b629537" => "retool-5775aba"
+-gcp:compute/address:Address: (replace)
[id=projects/sandbox-pulumi/regions/us-central1/addresses/retool-b629537]
[urn=urn:pulumi:sandbox::infra::gcp:compute/address:Address::retool]
~ name: "retool-b629537" => "retool-5775aba"
Even though this Address
has no dependencies. pulumi refresh --yes
didn’t help.
The only workaround I found is leaving pulumi.IgnoreChanges([]string{"name"})
everywhere like here
ip, err := compute.NewAddress(ctx, "retool", nil,
pulumi.DependsOn([]pulumi.Resource{enabledServices.Compute}),
pulumi.IgnoreChanges([]string{"name"}))
icy-controller-6092
05/17/2023, 3:17 AMpulumi refresh
to use the latest configuration values? I have a databricks:token
that recently expired and I am trying update the stack, I've run the "recovering configuration" steps in a new folder and running config get databricks:token
does show the correct token so I'm not sure why refresh is using the old config valuedelightful-salesclerk-16161
thousands-balloon-4359
05/18/2023, 5:48 PMpulumi up
block till the instance is running
I have the Pulumi python starter template - is there some docs/examples I can look at to achieve this? Is the appropriate way to keep polling till the system reaches the desired state?
potentially relevant reference to what got generated after pulumi new
# Create and launch an EC2 instance into the public subnet.
server = aws.ec2.Instance("server",
instance_type=instance_type,
subnet_id=subnet.id,
vpc_security_group_ids=[sec_group.id],
user_data=user_data,
ami=ami,
tags={
"Name": "webserver",
})
chilly-plastic-75584
05/19/2023, 5:29 PMbig-jordan-24260
05/22/2023, 2:48 PMpulumi config set aws:region us-west-2
.
This is result of
pulumi up --debug
Context:
The environment variables for AWS are set, and ‘aws s3 ls’ returns the list of buckets.
The stack is selected.
Can someone point me to the right direction on this?
Thanks in advancemagnificent-pillow-80370
05/22/2023, 3:15 PMbland-address-49163
05/23/2023, 12:11 PMchange-secrets-provider
and ended up in an inconsistent state. Now, I'd like to completely reset the secrets. I wouldn't mind re-entering the secrets, so that could be lost.
This is just in a dev environment, so I might as well delete everything. But I'm curious if there is a better way to fix this.astonishing-energy-53370
05/23/2023, 7:13 PMcareful-winter-88523
05/24/2023, 2:56 PMconfig ->
dns.ts
postgres.ts
...*.ts
index.ts
Where index.ts imports from the files within the config folder. Is this possible, or even a good idea? 😅