big-spring-69861
12/15/2021, 9:53 PMrough-hydrogen-27449
12/16/2021, 3:10 AMprovider = kafka.Provider(
"kafka-provider",
bootstrap_servers=confluent_environment.apply(
lambda e: [e.bootstrap_servers.lstrip("SASL_SSL://")]
),
opts=opts,
sasl_mechanism="plain",
sasl_username=confluent_environment.apply(
lambda e: e.environment_credentials.api_key
),
sasl_password=confluent_environment.apply(
lambda e: e.environment_credentials.api_secret
),
tls_enabled=True,
timeout=120,
)
and getting this error:
kafka:index:Topic (logs-topic):
error: 1 error occurred:
* kafka server: The client is not authorized to access this topic.
I have given the service account attached to my API key the CloudClusterAdmin
entitlement and have confirmed with the confluent CLI that the API key can create a topic in the cluster... Any ideas what might be going wrong here?thousands-jordan-32051
12/16/2021, 1:00 PMignoreChanges
to set individual elements e.g. "subnets[0].routeTable"
but I want to do it for all with some syntax like "subnets[*].routeTable"
. I've tried a few combos like [] and [*] or no brackets at all, but no luck so far. What have I missed?handsome-painter-81634
12/16/2021, 5:24 PMrapid-raincoat-36492
12/16/2021, 7:27 PMsteep-portugal-37539
12/16/2021, 7:31 PMpolite-napkin-90098
12/16/2021, 9:09 PMeksRole, err := iam.NewRole(ctx, "eksRole", &iam.RoleArgs{
AssumeRolePolicyDocument: pulumi.Any{
Version: "2012-10-17",
Statement: []map[string]interface{}{
map[string]interface{}{
"effect": "Allow",
"principal": map[string]interface{}{
"service": []string{
"<http://eks.amazonaws.com|eks.amazonaws.com>",
},
},
"action": []string{
"sts:AssumeRole",
},
},
},
},
Path: pulumi.String("/"),
ManagedPolicyArns: pulumi.StringArray{
pulumi.String("arn:aws:iam::aws:policy/AmazonEKSClusterPolicy"),
pulumi.String("arn:aws:iam::aws:policy/AmazonEKSServicePolicy"),
},
})
if err != nil {
return err
}
But when I try and run that I get the following errors.
Diagnostics:
pulumi:pulumi:Stack (EKS-EKS-test):
# EKS
./main.go:77:30: pulumi.Any is not a type
./main.go:77:30: invalid composite literal type func(interface {}) pulumi.AnyOutput
error: an unhandled error occurred: program exited with non-zero exit code: 2
I have spent some time checking I copied the example well enough and I can't find any syntax errors, also when I copy the code from the example verbatim into my main.go and try to run it I get similar errors.
Did something change about pulumi.Any?
Is there an error in the example?
Please help!rhythmic-tailor-1242
12/17/2021, 3:49 AMdev
I have the file index.ts
and then inside dev
I also have another folder iam
and inside it I have another index.ts
file.
I need pulumi up
to execute both files.
Is it possible?enough-motorcycle-97835
12/17/2021, 9:48 AMwet-noon-14291
12/17/2021, 1:38 PM<https://app.pulumi.com/signin/sso?reason=401&orgName=><myorgname>
rapid-eve-24229
12/17/2021, 10:39 PMfrom pulumi import export
import pulumi_aws as aws
# Create an Elastic Container Service (ECS) cluster in the default VPC
cluster = aws.ecs.Cluster(
"app-cluster",
settings=[aws.ecs.ClusterSettingArgs(name="containerInsights", value="enabled")],
)
Also does not work in Python 3.9
Also tried all the latest pip install libraries with the same message
Also tried a brand new project, still same message
millions-laptop-48175
12/19/2021, 3:00 PMquiet-plastic-34312
12/19/2021, 11:11 PMbulky-oil-97030
12/20/2021, 9:21 AMpulumi import
cli command to import an api management resource. Unfortunately, there is only documentation to import AWS resources via cli import. Is this possible with Azure too, and if so, how?colossal-market-93154
12/20/2021, 1:35 PMpulumi import
to import some resources from Github. Do you have any solution from that error? If not, can you point me to the source code of this command so I can write a bugfix?
Related to:
https://github.com/pulumi/pulumi/issues/7046
https://github.com/pulumi/pulumi-aws/issues/1368alert-laptop-13489
12/20/2021, 1:50 PMpulumi.String
instead of just a regular Go String
. What's the advantage of using the String from the pulumi
package?ancient-cricket-42076
12/20/2021, 3:14 PMbest-waiter-16927
12/20/2021, 4:34 PMstack
arg? (f.e. aliases: [{ stack: 'old-stack' }]
)
If not, what is this arg used for?limited-army-96747
12/20/2021, 5:30 PMfull-dress-10026
12/20/2021, 6:44 PMbroad-island-71889
12/20/2021, 9:35 PMbillions-hospital-77217
12/21/2021, 12:56 AMlittle-cartoon-10569
12/21/2021, 2:23 AMprehistoric-controller-80994
12/21/2021, 11:48 AMimportant-vegetable-39003
12/21/2021, 12:24 PMlimited-army-96747
12/21/2021, 2:14 PMCalling [toJSON] on an [Output<T>] is not supported. To get the value of an Output as a JSON value or JSON string consider either: 1: o.apply(v => v.toJSON()) 2: o.apply(v => JSON.stringify(v)) See <https://pulumi.io/help/outputs> for more details. This function may throw in a future version of @pulumi/pulumi.
limited-army-96747
12/21/2021, 2:14 PMconst rdsPassword = new random.RandomPassword('rds-password', {
length: 20,
special: true,
overrideSpecial: '_%@',
})
const rdsUsername = new random.RandomPassword('rds-username', {
length: 20,
special: false,
})
const rdsSecretVersion = new aws.secretsmanager.SecretVersion('rds-secret-version', {
secretId: rdsSecret.id,
secretString: JSON.stringify({
AURORA_USERNAME: rdsUsername.result.apply((value) => JSON.stringify(value)),
AURORA_PASSWORD: rdsPassword.result.apply((value) => JSON.stringify(value)),
}),
})
sticky-match-71841
12/21/2021, 2:26 PMbusy-island-31180
12/21/2021, 5:50 PMfancy-egg-38667
12/21/2021, 8:46 PMdata
type that I can use to refer to and verify external ( unmanaged ) resources
Is there an equivalent in Pulumi?fancy-egg-38667
12/21/2021, 8:46 PMdata
type that I can use to refer to and verify external ( unmanaged ) resources
Is there an equivalent in Pulumi?green-stone-37839
12/21/2021, 8:51 PMlittle-cartoon-10569
12/21/2021, 8:53 PMget
function that creates a read-only, unmanaged version of the resource.green-stone-37839
12/21/2021, 8:55 PMget
functions.fancy-egg-38667
12/21/2021, 9:02 PM