plain-eve-99442
08/24/2022, 12:42 PMplain-eve-99442
08/24/2022, 12:42 PMswift-apple-26877
08/24/2022, 2:14 PMfew-plastic-88435
08/24/2022, 2:42 PMflaky-arm-38472
08/24/2022, 3:44 PMpackage main
import (
"fmt"
"<http://github.com/pulumi/pulumi-aws/sdk/v5/go/aws/rds|github.com/pulumi/pulumi-aws/sdk/v5/go/aws/rds>"
"<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds.NewCluster(ctx, "default", &rds.ClusterArgs{
ClusterIdentifier: pulumi.String("aurora-cluster-demo"),
AvailabilityZones: pulumi.StringArray{
pulumi.String("us-west-2a"),
pulumi.String("us-west-2b"),
pulumi.String("us-west-2c"),
},
DatabaseName: pulumi.String("mydb"),
MasterUsername: pulumi.String("foo"),
MasterPassword: pulumi.String("barbut8chars"),
})
if err != nil {
return err
}
var clusterInstances []*rds.ClusterInstance
for key0, val0 := range 2 {
__res, err := rds.NewClusterInstance(ctx, fmt.Sprintf("clusterInstances-%v", key0), &rds.ClusterInstanceArgs{
Identifier: pulumi.String(fmt.Sprintf("aurora-cluster-demo-%v", val0)),
ClusterIdentifier: _default.ID(),
InstanceClass: pulumi.String("db.r4.large"),
Engine: _default.Engine,
EngineVersion: _default.EngineVersion,
})
if err != nil {
return err
}
clusterInstances = append(clusterInstances, __res)
}
return nil
})
}
Specifically the ranging when creating the clusterInstances (for key0, val0 := range 2)
. Range does not work like in Python. In go that range 2 will throw an error becasue first is an untyped int and second thats not how range works.echoing-oil-42947
08/24/2022, 7:52 PMhttp://share.asdn.dev/r/fk4gjU.png▾
future-refrigerator-88869
08/24/2022, 9:43 PMvpcConfig: {
subnetIds: lambdaVpcConfig.apply(lvc => lvc.lambdaVpcPrivateSubnetIds),
securityGroupIds: [
lambdaVpcConfig.apply(lvc => lvc.lambdaSecurityGroupId),
],
},
Which lambdaVpcConfig
is an output from a stack ref.
When I run pulumi up
, the changes appear in the diff but when it actually applies, nothing changes in regards to the vpc of the lambda (it's still on no vpc). Any idea what might be wrong ?billowy-yak-63946
08/25/2022, 6:10 AMflaky-arm-38472
08/25/2022, 6:23 AMbackend:
url: <s3://xxxx>
To each stack settings file?.dry-beach-58138
08/25/2022, 8:20 AM# Pulumi.dev.yaml
config:
aws:region: ap-northeast-1
How can I import the AWS ACM from us-east-1 ?damp-honey-93158
08/25/2022, 11:14 AMpurple-plastic-64657
08/25/2022, 3:01 PMsteep-lamp-20408
08/25/2022, 3:04 PMdelightful-magazine-20463
08/25/2022, 4:58 PMschema.json
. There was a note on a page somewhere (that I can no longer find) that mentions you can autogenerate this file. With what will end up being ~100 components that we'll end up creating, it feels like this is very error-prone / toil to manage this file by hand. Is it possible to autogenerate this file? Are there any examples?chilly-analyst-14900
08/25/2022, 7:25 PMlittle-cartoon-10569
08/25/2022, 10:09 PMRandomString.result
.gentle-market-22852
08/26/2022, 7:31 AMaContext.log().error("fatal error");
it is existing the programs.. is that way it supposed to work, as logging an error means, log with error color etc.. not to exist the jvm itself
Is this a known issue with pulumi API designfresh-keyboard-13188
08/26/2022, 8:06 AM@pulumi/awsx
code because we're deploying Fargate and need some extra policies configured. Can anybody confirm if the comments here are right and you do in fact need both Lambda and ECS full access for this setup to work?gentle-market-22852
08/26/2022, 8:30 AMprivate static void stack(final Context aContext) {
final var cluster = new Cluster("eks-cluster");
aContext.export("kubeconfig", cluster.kubeconfig());
}
any clues why this error, however eks did start when seen from aws consolefreezing-gpu-87462
08/26/2022, 10:48 AMnutritious-battery-42762
08/26/2022, 1:32 PMbitter-carpenter-93554
08/26/2022, 7:37 PMpulumi login
for each project?bitter-carpenter-93554
08/26/2022, 7:41 PMpowerful-rocket-20061
08/26/2022, 9:34 PMflaky-arm-38472
08/27/2022, 11:16 AMlate-pharmacist-6268
08/27/2022, 2:23 PMvictorious-dusk-75271
08/27/2022, 4:16 PMbrainy-forest-39638
08/28/2022, 8:36 PMbrainy-forest-39638
08/28/2022, 8:37 PMconst d = lib.Network.get("default", "f5cd7f9e-5fb9-44b1-9d97-98019db8db9b");
brainy-forest-39638
08/28/2022, 8:39 PMimport * as lib from "@pulumi/libvirt";