brash-restaurant-84207
09/28/2022, 11:36 AMnarrow-barista-48437
09/28/2022, 5:45 PMpulumi up
on a stack.
pulumi preview
runs with no problem.
I'm dealing with this problem for days, since migrate to new macbook.
Did a lot of tests and reinstalls (pulumi, awscli, ...) and the error persists the same.
Finally I made a total fresh install (format) on the new macbook with just the minimal requirements to run the project.
Still got same multiple errors, like below:
...
error: Running program 'my-project' failed with an unhandled exception:
Error: invocation of aws:index/getPartition:getPartition returned an error: unable to validate AWS credentials. Make sure you have:
• Set your AWS region, e.g. `pulumi config set aws:region us-west-2`
• Configured your AWS credentials as per <https://pulumi.io/install/aws.html>
You can also set these via cli using `aws configure`.
...
error: Running program 'my-project' failed with an unhandled exception:
Error: invocation of aws:index/getRegion:getRegion returned an error: unable to validate AWS credentials. Make sure you have:
• Set your AWS region, e.g. `pulumi config set aws:region us-west-2`
• Configured your AWS credentials as per <https://pulumi.io/install/aws.html>
You can also set these via cli using `aws configure`.
...
Other times it shows:
...
error: Error: invocation of aws:index/getCallerIdentity:getCallerIdentity returned an error: invoking aws:index/getCallerIdentity:getCallerIdentity: 1 error occurred:
* getting Caller Identity: RequestError: send request failed
caused by: Post "<https://sts.amazonaws.com/>": dial tcp: lookup <http://sts.amazonaws.com|sts.amazonaws.com> on [fe80::1272:23ff:fe1d:5731%en0]:53: no such host
...
Everything runs nice on other machines, even at the ci/cd (github actions).
I don't know more what can I do.
Pls any help would be appreciated.little-cartoon-10569
09/28/2022, 11:15 PMUnhandledPromiseRejectionWarning: Error: failed to register new resource test [aws:cloudwatch/logSubscriptionFilter:LogSubscriptionFilter]: exports.LogGroup is not a constructor
and
UnhandledPromiseRejectionWarning: Error: failed to register new resource test [aws:lambda/permission:Permission]: exports.Function is not a constructor
Has anyone encountered this sort of thing? And maybe found a solution?polite-flag-71793
09/29/2022, 12:31 PMcalm-horse-33012
09/30/2022, 8:31 AMAPI-Gateway-Execution-Logs-<apiId>/<stage>
, so I'm not sure what the dependsOn is supposed to achieve except creating a LogGroup prior to the stage? 🤔full-artist-27215
09/30/2022, 4:11 PMUPDATE_COMPLETE_CLEANUP_IN_PROGRESS
state. Sometimes I can immediately re-run the pulumi up
and it will succeed in a minute; other times, the re-run will fail in a minute. In the latter case, if I wait a while (e.g., ~30 minutes), I can re-run and it will often pass. Has anyone else seen this kind of behavior?gentle-rocket-97330
09/30/2022, 7:54 PMpulumi up
, I see the plan is to create a new EC2 instance. I would like to know why pulumi thinks this is necessary. I've tried generating varying levels of logs with the -v=N
parameter but I haven't found anything that clues me in to the reason(s) why.
Is there a way to explicitly determine why a re-create of a resource is deemed necessary?clever-helmet-2777
09/30/2022, 11:19 PMeks:index:Cluster$aws:ec2/launchConfiguration:LaunchConfiguration (x-cluster-nodeLaunchConfiguration)
+- aws:ec2/launchConfiguration:LaunchConfiguration (replace)
I am trying to find out how to fix this
I made a little investigation and I think that sometimes one of the nodes get terminated for some reason and replaced by the autoscaling group by a new node (ec2 instance)
and then during the following deployment for sure the node launch config needs to get updated to reflect with the new live instances.
But I don't want to have a downtime on my services due to this
Thank you
Salahgreat-greece-44955
10/03/2022, 3:16 AMbig-journalist-62782
10/03/2022, 8:11 AMawsx.ecs.FargateService
to work with an ApplicationListener
that does authentication.
Without the authentication, I can specify portMappings: [listener]
inside the container
config, but when I add an authenticate-oidc
step and then a forward
step to a TargetGroup
, this stops working. portMappings
is supposed to accept a TargetGroup
as well as a Listener
but typescript refuses to allow it. This page https://www.pulumi.com/docs/guides/crosswalk/aws/ecs/ specifies a syntax that seems to be completely invalid (a PortMapping doesn’t have a targetGroup
input keyword). Has anyone managed to get this to work?dry-dentist-95091
10/03/2022, 8:35 AMids:list[pulumi.output.Output] #contains ids of the resources to be deployed
deployment = apigateway.Deployment("test_deployment",
rest_api=restapi.id,
triggers={
"redeployment":pulumi.Output.all(ids)
.apply(lambda exampleResourceId: json.dumps([exampleResourceId]))
.apply(lambda to_json: hashlib.sha1(to_json.encode()).hexdigest()),
}
)
as pulumi.Output.all function accepts the pulumi.output.Output not list[pulumi.output.Output], I am getting error.
How should I pass the above ids into pulumi.Output.all function so that all the ids in the list can passed?
(a list can contain any number of elements)delightful-monkey-90700
10/03/2022, 4:45 PMaws.lambda.EventHandler
) ? aws.lambda.Alias
isn't compatible with itswift-fireman-31153
10/03/2022, 10:25 PMawsx
code instead of aws
?swift-fireman-31153
10/03/2022, 10:26 PMfew-mechanic-54967
10/04/2022, 6:03 AMdata.aws_availability_zones.region_azs.names[2]
thank youbland-byte-34481
10/04/2022, 2:02 PMsteep-lamp-20408
10/05/2022, 8:32 AMlambda_handler = aws.lambda_.Function(
"my-lambda",
name="my-lambda",
code=pulumi.FileArchive(lambda_zip_path),
runtime="python3.9",
handler="main.handler",
role=iam_role_for_lambda.arn,
opts=pulumi.ResourceOptions(depends_on=[log_group]),
vpc_config=aws.lambda_.FunctionVpcConfigArgs(
vpc_id=vpc.id,
subnet_ids=[public_subnet_1.id, private_subnet_1.id],
security_group_ids=[allow_tls.id],
),
)
...but I get error: aws:lambda/function:Function resource 'my-lambda' has a problem: Value for unconfigurable attribute: Can't configure a value for "vpc_config.0.vpc_id": its value will be decided automatically based on the result of applying this configuration.. Examine values at 'Function.VpcConfig.VpcId'.
I’m not sure I understand the error. Does anybody know what it means?steep-lamp-20408
10/05/2022, 8:56 AMpublic_subnet_1 = aws.ec2.Subnet(
"subnet-public-1", # Seems like the name is not working in AWS console
vpc_id=vpc.id,
cidr_block="10.0.1.0/24",
)
private_subnet_1 = aws.ec2.Subnet(
"subnetn-private-1", # Seems like the name is not working in AWS console
vpc_id=vpc.id,
cidr_block="10.0.2.0/24",
)
The subnets are created, but their names do not appear in the AWS console (they have no names).
I also tried with resource-name
attribute (attribute="subnet-public-1"
), but it’s the same. Why?modern-evening-83482
10/05/2022, 4:11 PMmillions-judge-24978
10/05/2022, 7:51 PMvictorious-dusk-75271
10/06/2022, 4:32 AMpowerful-rain-97767
10/06/2022, 2:05 PMpulumi-awsx
. The snippet below works, however I need to add a set of tags to the private subnets that are generated, as well as adding a different set of tags to the public subnets.
Conceptually, I understand that I need to add the tags before Pulumi creates the resources, but I am not sure how to go about that, even for all subnets. There's an arg called subnet_specs
but adding tags is not an option. There's also the tags
are for the Vpc
, but that just adds tags to the VPC. Help?
import pulumi
import pulumi_awsx as awsx
config = pulumi.Config()
vpc_network_cidr = config.get("vpcNetworkCidr", "10.0.0.0/16")
# Create a VPC for the EKS cluster
eks_vpc = awsx.ec2.Vpc(
"eks-vpc", enable_dns_hostnames=True, cidr_block=vpc_network_cidr,
)
breezy-yak-93992
10/07/2022, 1:40 PMtrigger
in the AWS Lambda docs; do the docs use some other term or does Pulumi simply not support creating triggers ?big-house-59728
10/07/2022, 2:43 PMaws-native
to create a CloudFront Distribution, and as far as I can tell from the documentation, I have all the required fields I should need in the following config:
const distribution = new awsn.cloudfront.Distribution(`${appName}-cache`, {
distributionConfig: {
enabled: true,
defaultCacheBehavior: {
targetOriginId: domain,
viewerProtocolPolicy: "redirect-to-https",
defaultTTL: 900,
allowedMethods: [
"GET",
"HEAD"
],
compress: true,
},
},
tags
});
I get a preview that tells me everything should get created, then when I go to run pulumi up
I get the following error:
Diagnostics:
pulumi:pulumi:Stack
error: update failed
aws-native:cloudfront:Distribution
error: operation CREATE failed with "InvalidRequest": Invalid request provided: 1 validation error detected: Value null at 'distributionConfigWithTags.distributionConfig.origins.items' failed to satisfy constraint: Member must not be null (Service: CloudFront, Status Code: 400, Request ID: be520947-ac5f-4fe0-a5d8-83ffb0bbafde)
Resources:
1 unchanged
Duration: 4s
Should I not be using aws-native
for CloudFront yet or is there something I am missing from this?kind-hamburger-15227
10/07/2022, 3:08 PMaws:ecs:TaskDefinition (app-svc):
error: 1 error occurred:
* failed creating ECS Task Definition (app-svc-ba5d8020): ClientException: Log driver awslogs requires options: awslogs-region
kind-hamburger-15227
10/07/2022, 3:09 PMconst appService = new awsx.ecs.FargateService("app-svc", {
cluster,
taskDefinitionArgs: {
container: {
image: 'jupyter/datascience-notebook',
cpu: 102 /*10% of 1024*/,
memory: 5000 /*MB*/,
portMappings: [ listener ],
},
},
desiredCount: 1,
});
kind-hamburger-15227
10/07/2022, 3:11 PMarn:aws:elasticloadbalancing:eu-north-1:136559070303:targetgroup/group-3f16a0b/d19344126107e4c0' is not a valid target group ARN
alert-spoon-97538
10/10/2022, 12:53 AMfew-mechanic-54967
10/10/2022, 1:19 AMcreamy-pharmacist-70032
10/10/2022, 1:21 AMcreamy-pharmacist-70032
10/10/2022, 1:21 AM