full-sugar-56177
10/22/2021, 6:33 PMbig-pizza-47421
10/23/2021, 3:12 PMpulumi:pulumi:Stack ecs-dev
- └─ aws:ec2:SecurityGroup web-traffic deleting. completing deletion from previous update
This have been running forever now, and I see no reason for that since removing a SG should took 2 seconds.
Anyway to DEBUG or force it somehow?big-pizza-47421
10/23/2021, 5:26 PM// Allocate a new VPC that uses all of the current region's availability zones:
const vpc = new awsx.ec2.Vpc(`lsports-${getStack()}`, {
numberOfAvailabilityZones: "all",
subnets: [
{ type: "public" },
{ type: "private" },
{ type: "isolated", name: "db" },
{ type: "isolated", name: "redis" },
],
tags: baseTags,
});
and the following ECS project
const vpc = awsx.ec2.Vpc.fromExistingIds(`lsports-${getStack()}`, {
vpcId: network.getOutput("vpcId"),
});
// Create a load balancer on port 80 and spin up two instances of Nginx.
const alb = new awsx.elasticloadbalancingv2.ApplicationLoadBalancer(
"web-traffic",
{
vpc: vpc,
subnets: network.getOutput("publicSubnetIds"),
tags: baseTags,
}
);
const listener = alb.createListener("web-listener", { port: 80 });
const nginx = new awsx.ecs.FargateService("nginx", {
tags: baseTags,
taskDefinitionArgs: {
containers: {
nginx: {
image: "nginx",
memory: 128,
portMappings: [listener],
},
},
},
desiredCount: 2,
});
I'm getting the following error:
* error creating application Load Balancer: ValidationError: At least two subnets in two different Availability Zones must be specified
status code: 400, request id: 99ff6eef-e935-43e3-b34a-cf36251db0e7
which is weird, since I have public subnets across all AZ's, if I create the VPC in the same project everything seem to work as expectedbig-pizza-47421
10/23/2021, 5:27 PMsome-magician-44503
10/25/2021, 10:03 AMbrave-nightfall-19158
10/25/2021, 5:13 PMbrave-nightfall-19158
10/25/2021, 5:13 PMflaky-waitress-53285
10/25/2021, 9:58 PMpolite-kite-18322
10/26/2021, 12:44 AMpulumi up
with this:
// Connect to an EKS cluster
const clusterState: aws.eks.ClusterState = {
arn: "arn:aws:eks:us-west-2:xxxxxxxxxx:cluster/prod-eks-cluster",
roleArn: "arn:aws:iam::xxxxxxxxxx:role/prod-eks-role"
};
const cluster = aws.eks.Cluster.get("prod-eks-cluster", "arn:aws:eks:us-west-2:xxxxxxxxxx:cluster/prod-eks-cluster", clusterState);
I get this error:
aws:eks:Cluster (prod-eks-cluster):
error: Preview failed: refreshing urn:pulumi:credit-queue-consumer::credit-queue-consumer::aws:eks/cluster:Cluster::prod-eks-cluster: 1 error occurred:
* error reading EKS Cluster (arn:aws:eks:us-west-2:xxxxxxxxxx:cluster/prod-eks-cluster): InvalidParameterException: The name parameter contains invalid characters. It should begin with letter or digit and can have any of the following characters: the set of Unicode letters, digits, hyphens and underscores.
{
RespMetadata: {
StatusCode: 400,
RequestID: "ff224265-9991-4840-9a91-91bd4a010dc1"
},
ClusterName: "arn:aws:eks:us-west-2:xxxxxxxxxx:cluster/prod-eks-cluster",
Message_: "The name parameter contains invalid characters. It should begin with letter or digit and can have any of the following characters: the set of Unicode letters, digits, hyphens and underscores."
}
The documentation for aws.eks.Cluster.get
suggests that id
is the unique provider id of the resource to lookup, but this error response looks like it's being interpreted as the ClusterName
. What format should the id
take?busy-insurance-52853
10/26/2021, 2:07 PMctx.Export("vpcID", vpc.ID())
and I want to get that output later on in the script, how do I do that?bored-barista-23480
10/27/2021, 3:04 PMpulumi new
also works with any repo containing a template - that would solve the problem and make it even easier for the user. But I get error: authentication required
trying to do so. But I can't find any hints how to authenticate using the command. Any suggestions?brave-nightfall-19158
10/27/2021, 3:26 PMbrave-nightfall-19158
10/27/2021, 3:31 PMlittle-pilot-47306
10/28/2021, 1:14 PMterraform plan -out=planfile.json
to ensure that the reviewed and pproved plan executed by a downstream ci ci step is the exact one reviewed (executed by terraform apply -input=planfile.json
little-pilot-47306
10/28/2021, 1:15 PMmany-yak-61188
11/02/2021, 3:38 PM3.36.0
but I don't see the equivalent in pulumi
https://github.com/hashicorp/terraform-provider-aws/blob/v3.36.0/CHANGELOG.md
specifically looking for the resource aws_mwaa_environment
. Can someone point me to the right place to find this?full-sugar-56177
11/03/2021, 11:19 AMstraight-intern-54129
11/03/2021, 10:09 PMpulumi up
with no suggestions on how to fix it.
It looks like I should use pulumi state delete
, but I'm not sure how to find the urn of the resource, or if that's even the right command. It would be nice if I could delete it by its name
.straight-intern-54129
11/03/2021, 10:15 PMpulumi stack --show-urns
quick-lifeguard-72252
11/03/2021, 11:24 PMsquare-coat-62279
11/04/2021, 12:47 AMabundant-book-94104
11/04/2021, 2:21 AMcalm-motherboard-38234
11/05/2021, 6:41 PMpackage main
import (
"<http://github.com/pulumi/pulumi-aws/sdk/v4/go/aws/s3|github.com/pulumi/pulumi-aws/sdk/v4/go/aws/s3>"
"<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 {
// Create an AWS resource (S3 Bucket)
bucket, err := s3.NewBucket(ctx, "playground", nil)
if err != nil {
return err
}
_, err = s3.NewBucketObject(ctx, "index.html", &s3.BucketObjectArgs{
Bucket: bucket.ID(),
Source: pulumi.NewFileAsset("index.html"),
})
if err != nil {
return err
}
// Export the name of the bucket
ctx.Export("bucketName", bucket.ID())
return nil
})
}
Is there something I might be missing? The application runs fine until I introduce the NewBucketObject func call. Thanks in advance!brainy-church-78120
11/05/2021, 7:41 PMbland-cartoon-22627
11/08/2021, 12:54 AMabundant-book-94104
11/08/2021, 3:43 AMwitty-honey-13693
11/09/2021, 3:02 AMfull-sugar-56177
11/09/2021, 9:25 AMdev
and prod
. Using S3 as a state backend, there is a directory called stacks
with the corresponding dev
and prod
json files. What if I create ProjectB with the same stack names though? How can Pulumi separate these stacks from the stacks of ProjectA? I guess I have to use more explicit names for my stacks?hundreds-lion-28881
11/09/2021, 10:49 AMpulumi refresh
command. I manually deleted the bucket from GCP and tried to run pulumi refresh
to see if it would notice the change. However, it hangs forever, and if I run it with pulumi refresh --logtostderr -v=9
I see that it seems to infinitely encounter this
I1109 12:44:31.269962 54836 eventsink.go:62] eventSink::Debug(<{%reset%}>Dismissed an error as retryable. Retry 404s for bu
cket creation - googleapi: Error 404: The specified bucket does not exist., notFound<{%reset%}>)
I know you can manually alter the state to tell it a resource has been deleted but that's not a long term solution for us.clean-beard-72040
11/10/2021, 12:25 AMclean-beard-72040
11/10/2021, 12:25 AMlimited-rainbow-51650
11/10/2021, 12:02 PMclean-beard-72040
11/10/2021, 8:03 PM