microscopic-flower-5848
04/23/2022, 11:15 AMmicroscopic-flower-5848
04/23/2022, 11:15 AMmicroscopic-flower-5848
04/23/2022, 11:17 AMbland-lamp-16797
04/23/2022, 2:07 PMbitter-eve-53295
04/23/2022, 3:17 PMicy-controller-6092
04/24/2022, 12:31 AMicy-controller-6092
04/24/2022, 2:24 AMcode: FileArchive('./a') + FileArchive('./b')
helpful-account-44059
04/24/2022, 5:30 AMstocky-petabyte-29883
04/24/2022, 1:20 PMconst defaultCluster = new aws.rds.Cluster(`${stack}-aurora-mysql-cluster`, {
availabilityZones: auroraConfig.instances.map(x=> x.zoneName),
applyImmediately: auroraConfig.applyImmediately,
backupRetentionPeriod: auroraConfig.backupRetentionPeriod,
clusterIdentifier: `aurora-cluster-${stack}`,
databaseName: auroraConfig.database,
vpcSecurityGroupIds: [sg.id],
dbSubnetGroupName: subnetGroup.name,
engine: "aurora-mysql",
engineVersion: "5.7.mysql_aurora.2.03.2",
preferredBackupWindow: "07:00-09:00",
port: 3306,
masterUsername: "admin",
masterPassword: dbPassword.result,
tags: {
Environment: stack
},
});
let clusterInstances: aws.rds.ClusterInstance[] = [];
for (const range = {value: 0}; range.value < auroraConfig.instances.length; range.value++) {
clusterInstances.push(new aws.rds.ClusterInstance(`${stack}-clusterInstances-${range.value}`, {
identifier: `aurora-cluster-${stack}-instance-${range.value}`,
clusterIdentifier: defaultCluster.id,
instanceClass: auroraConfig.instanceType,
engine: "aurora-mysql",
engineVersion: defaultCluster.engineVersion,
tags: {
Environment: stack
},
}));
};
astonishing-microphone-39160
04/25/2022, 2:35 AMmake tfgen
, there were always some compilation errors that should be caused by golang package versions before and after i tried to resolved them.
Here is the provider/go.mod:
module <http://github.com/danli001/pulumi-tencentcloud/provider|github.com/danli001/pulumi-tencentcloud/provider>
go 1.16
replace (
<http://github.com/hashicorp/go-getter|github.com/hashicorp/go-getter> v1.5.0 => <http://github.com/hashicorp/go-getter|github.com/hashicorp/go-getter> v1.4.0
<http://github.com/hashicorp/terraform-plugin-sdk/v2|github.com/hashicorp/terraform-plugin-sdk/v2> => <http://github.com/pulumi/terraform-plugin-sdk/v2|github.com/pulumi/terraform-plugin-sdk/v2> upstream-v2.10.1
)
require (
<http://github.com/hashicorp/terraform-plugin-sdk|github.com/hashicorp/terraform-plugin-sdk> v1.9.1
<http://github.com/pulumi/pulumi-terraform-bridge/v3|github.com/pulumi/pulumi-terraform-bridge/v3> v3.18.0
<http://github.com/pulumi/pulumi/sdk/v3|github.com/pulumi/pulumi/sdk/v3> v3.25.1
<http://github.com/tencentcloudstack/terraform-provider-tencentcloud|github.com/tencentcloudstack/terraform-provider-tencentcloud> v1.70.2
)
Errors:
❯ make tfgen  10:28:19
[ -x /usr/local/bin/pulumi ] || curl -fsSL <https://get.pulumi.com> | sh
pulumi plugin install resource random 4.3.1
(cd provider && go build -o /Users/dli/workspace/goproj/src/github.com/danli001/pulumi-tencentcloud/bin/pulumi-tfgen-tencentcloud -ldflags "-X <http://github.com/danli001/pulumi-tencentcloud/provider/pkg/version.Version=0.0.1-alpha.1650620947+25dcfec6.dirty|github.com/danli001/pulumi-tencentcloud/provider/pkg/version.Version=0.0.1-alpha.1650620947+25dcfec6.dirty>" <http://github.com/danli001/pulumi-tencentcloud/provider/cmd/pulumi-tfgen-tencentcloud)|github.com/danli001/pulumi-tencentcloud/provider/cmd/pulumi-tfgen-tencentcloud)>
# <http://github.com/hashicorp/terraform-plugin-test|github.com/hashicorp/terraform-plugin-test>
/Users/dli/go/pkg/mod/github.com/hashicorp/terraform-plugin-test@v1.3.0/helper.go:184:85: not enough arguments in call to zipDecompressor.Decompress
have (string, string, bool)
want (string, string, bool, fs.FileMode)
# <http://github.com/pulumi/pulumi/pkg/v3/codegen/schema|github.com/pulumi/pulumi/pkg/v3/codegen/schema>
/Users/dli/go/pkg/mod/github.com/pulumi/pulumi/pkg/v3@v3.23.2/codegen/schema/loader.go:120:31: not enough arguments in call to pkgPlugin.Install
have (*os.File)
want (io.ReadCloser, bool)
make: *** [tfgen] Error 2
Did i do anything wrong here?helpful-account-44059
04/25/2022, 8:09 AMDiagnostics:
aws:s3:BucketObject (assets/NOTICES):
warning: urn:pulumi:dev::relation-website::aws:s3/bucketObject:BucketObject::assets/NOTICES verification warning: Argument is deprecated
warning: urn:pulumi:dev::relation-website::aws:s3/bucketObject:BucketObject::assets/NOTICES verification warning: Argument is deprecated
how to avoid ?nutritious-continent-48407
04/25/2022, 10:02 AMsecret, err := keyvault.GetSecret(ctx, "my-secret", config.SessionHostConfig.KeyvaultSecretID, &keyvault.SecretState{})
if err != nil {
return err
}
type ADJoinExtensionProtectedConfig struct {
Password string `json:"Password"`
}
jsonExtensionProtected := ADJoinExtensionProtectedConfig{
Password: secret.Value, // Won't work StringOutput vs string mismatch
}
jsonExtensionProtectedResult, err := json.Marshal(jsonExtensionProtected)
if err != nil {
return err
}
What would be the best way to accomplish this, any thoughts?
Best regards,
Jeroenjolly-church-88521
04/25/2022, 3:31 PMaws-go-eks
working fine? I’m trying to create cluster and I’m getting some errors:
Diagnostics:
pulumi:pulumi:Stack (aws-go-eks-dev):
error: an unhandled error occurred: program exited with non-zero exit code: 2
# aws-go-eks
./main.go:144:15: eksCluster.CertificateAuthority undefined (type *eks.Cluster has no field or method CertificateAuthority)
./main.go:148:16: eksCluster.CertificateAuthority undefined (type *eks.Cluster has no field or method CertificateAuthority)
able-train-72108
04/25/2022, 6:40 PMpulumi stack export
and pulumi resource state in the console?
I have a stack in which I remove one agent pool from AKS. When I do pulumi up, pulumi says it has nothing to do. When I export the stack, the agent profile contains only one agent pool (as expected by the code). But, in the pulumi console (and in Azure), the second agent pool is still there. I preview a refresh and the only thing that is changing is the node image of the second pool. I'm trying to understand what is going on and how to fix this, any ideas?rich-stone-79955
04/25/2022, 8:34 PMaverage-article-76176
04/25/2022, 10:47 PM`bucket_prefix`: Creates a unique bucket name beginning with the specified prefix. Conflicts withWhat does _"Conflicts with.bucket
bucket
._" mean?
a. If I use this param, I cannot use the bucket
param.
b. If I use this param, it works in conjunction with the bucket
param and may invalidate bucket
if the resulting bucket name is bigger than what's allowed by AWS. (edited)
c. Something else.cuddly-actor-99406
04/26/2022, 2:49 AMkubectl describe node
. I have a pulumi_eks.Cluster
resource available. I also have a pulumi_kubernetes.Provider
available. I'm trying to a node's IP address for use in a dns record. Thanks.abundant-solstice-21589
04/26/2022, 6:24 AMconfig:
myNamepace:myStorage:
name: myStorageName
size: 50
I have tried the following:
jsonString := `{"name": "test", "size": 100}`
err = stack.SetConfig(ctx, "myNamepace:myStorage", auto.ConfigValue{
Value: jsonString,
Secret: false,
})
I got the following result which is not what I want:
config:
myNamepace:myStorage: '{"name": "test", "size": 100}'
great-sunset-355
04/26/2022, 8:33 AMfresh-fountain-30715
04/26/2022, 10:49 AMcalm-mechanic-93288
04/26/2022, 11:26 AMError 400: Invalid request: Invalid instance name in request body
. Also, I noticed that Outputs
for both main/master instance and the replica are getting the same IP addresses output. Though this can be resolve using ignoreChanges: ["settings"]
as a workaround, however any future changes in that property (settings
) will be ignored.salmon-account-74572
04/26/2022, 3:05 PMorange-fish-38644
04/26/2022, 3:27 PMazure-native:web:WebApp (MyApp):
error: autorest/azure: Service returned an error. Status=<nil> <ni>
If I activate verbose logging I see following error message, regarding a blob not found:
I0426 17:05:56.202820 29574 state.go:268] error copying .pulumi/stacks/dev2.json to .pulumi/stacks/dev2.json.bak: blob (key ".pulumi/stacks/dev2.json.bak -> .pulumi/stacks/dev2.json") (code=NotFound): -> <http://github.com/Azure/azure-storage-blob-go/azblob.newStorageError|github.com/Azure/azure-storage-blob-go/azblob.newStorageError>, /Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.13.0/azblob/zc_storage_error.go:42
(I'm using my own pulumi state backend in azure blob store)
I'm a bit lost how to to solve this issue and would be happy for any support or hint. Thanks in advance :thank-you:busy-dentist-99842
04/26/2022, 3:38 PMaws.ec2.getSubnets()
guarantees the order of the ids
returned?
In other words, if I have multiple subnets but only use the first id in the array returned, can I expect to always get the same subnet id?
https://www.pulumi.com/registry/packages/aws/api-docs/ec2/getsubnets/big-potato-91793
04/26/2022, 3:53 PMdelightful-monkey-90700
04/26/2022, 4:19 PMwet-soccer-72485
04/26/2022, 7:35 PMcuddly-hairdresser-74798
04/26/2022, 7:38 PMcareful-oil-55681
04/26/2022, 10:13 PMicy-controller-6092
04/27/2022, 12:08 AMicy-controller-6092
04/27/2022, 12:08 AM