faint-balloon-33174
01/12/2023, 9:59 PMable-hospital-16256
01/12/2023, 10:03 PMadamant-leather-41068
01/13/2023, 4:09 AMawsx.ec2.Vpc
to generate a VPC across two availability zones:
const vpc = new awsx.ec2.Vpc(`${shortName(nameConfig)}-vpc`, {
availabilityZoneNames: [zoneName, albSecondZoneName],
cidrBlock: '10.0.0.0/16',
enableDnsHostnames: true,
tags: { name: `${shortName(nameConfig)}-vpc` },
subnetSpecs:[
{
type: awsx.ec2.SubnetType.Public,
cidrMask: 22,
},
{
type: awsx.ec2.SubnetType.Private,
cidrMask: 20,
},
],
})
How do I get the public subnet for the availability zone zoneName
to launch an EC2 instance in?
This seems like it should be easy, but the examples all just choose the first public subnet ID (which isn't correct).
There is vpc.subnets
but checking tagsAll
and availabilityZone
inside subnets.apply()
doesn't seem to work (it appears tagsAll.apply()
and availabilityZone.apply()
don't block?)thankful-judge-75045
01/13/2023, 2:21 PMconst webTargetGroup = new aws.lb.TargetGroup(`web-target-${stack}`, {
port: 3000,
protocol: "HTTP",
vpcId: vpc.vpcId,
targetType: "ip",
});
const loadbalancer = new awsx.lb.ApplicationLoadBalancer(
`loadbalancer-${stack}`,
{
listeners: [
{
port: 3000,
protocol: "HTTP",
defaultActions: [
{
type: "redirect",
redirect: {
protocol: "HTTPS",
port: "443",
statusCode: "HTTP_301",
},
},
],
tags: {
Environment: stack,
},
},
{
port: 443,
certificateArn: apiCert.arn,
protocol: "HTTPS",
sslPolicy: "ELBSecurityPolicy-2016-08",
defaultActions: [
{
type: "forward",
forward: {
targetGroups: [
{
arn: webTargetGroup.arn,
},
],
},
},
],
tags: {
Environment: stack,
},
},
],
tags: {
Environment: stack,
},
}
);
I am also creating a Farget service using the code below
const webTargetGroup = stackRef.getOutput('webApplicationTargetGroup');
const image = new awsx.ecr.Image(`image-${stack}`, {
repositoryUrl: repoUrl,
path: '../',
});
new awsx.ecs.FargateService(`service-${stack}`, {
cluster: clusterArn,
assignPublicIp: true,
taskDefinitionArgs: {
container: {
image: image.imageUri,
cpu: cpu,
memory: memory,
essential: true,
portMappings: [
{
containerPort: containerPort,
targetGroup: webTargetGroup,
},
],
},
},
});
I am getting a 503 error after deployment. I believe its due to some port mapping configuration that I have excluded or entered incorrectly. My backend is running on port 3000. Any help is appreciatedfaint-balloon-33174
01/13/2023, 8:42 PMgreen-daybreak-91402
01/13/2023, 9:32 PMmost-mouse-38002
01/16/2023, 10:09 AMcertificate-authentication
, but I am a bit unsure as to how to approach this? I assume I have to create a CA, and then have Pulumi create a cert from this? Or can I somehow upload a keypair created by Pulumi to ACM and use this with the Client VPN? Any pointers on how to do this with Pulumi would be greatly appreciated.sparse-intern-71089
01/17/2023, 11:53 AMbland-pharmacist-96854
01/17/2023, 3:32 PMaws emr-containers update-role-trust-policy --cluster-name eksworkshop-eksctl --namespace spark --role-name EMRContainers-JobExecutionRole
I mean, emr-containers update-role-trust-policy
microscopic-animal-41955
01/18/2023, 6:41 PMError creating ECR Registry Policy: InvalidParameterException: Invalid parameter at 'PolicyText' failed to satisfy constraint: 'Invalid registry policy provided'
I noticed that the Pulumi API for RegistryPolicy doesn’t take a repository ID, only a policy (https://www.pulumi.com/registry/packages/aws/api-docs/ecr/registrypolicy/#create). Whereas the terraform API takes both a repository ID and a policy (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository_policy#argument-reference). Is it possible that this Pulumi API is wrong and it’s impossible to make AWS ECR Registry Policies or am I missing something? I don’t see how Pulumi could know what repository to apply this policy to without a registry/repository IDgreen-daybreak-91402
01/18/2023, 8:06 PMawsx.classic.ecr.buildAndPushImage
functiongreen-daybreak-91402
01/18/2023, 9:38 PMwide-account-87747
01/20/2023, 12:00 AMpulumi up
at the preview stage:
aws:lambda:Function (PROJECT-exec-role):
error: Preview failed: refreshing urn:pulumi:dev::PROJECT::aws:lambda/function:Function::PROJECT-exec-role: 1 error occurred:
* AccessDeniedException:
status code: 403, request id: 649a5d8a-83ac-4194-82b9-0b11a1309de7
I’ve confirmed that my AWS CLI credentials are current and valid, and can perform the needed action (updating the IAM role) with these credentials manually; and this error reads more as a 403 from Pulumi, not AWS. I’ve tried pulumi logout && pulumi login
to no avail.cold-sundown-35940
01/22/2023, 8:32 PMstale-nail-55781
01/23/2023, 10:34 AMLayerVersion
object in Pulumi
• I am able to get the arn using layerVersion.arn()
this returns an Output<String>
• I am not able to attach that value to a lambda function Function
object. The layers
field expects a String, not the Output<String> we have
Am I doing something wrong here?helpful-knife-18557
01/23/2023, 2:05 PMVersionsLimitExceededException
when updating a aws.iot.policy
:
* error updating IoT Policy (my_policy): VersionsLimitExceededException: The policy my_policy already has the maximum number of versions (5)
Is there something special I need to do to prune the oldest version of the policy to make room for the new one?
thanks!gorgeous-eve-39553
01/23/2023, 3:11 PMcom.pulumi.aws.eks
and com.pulumi.eks
. What is the difference between the two? Is there some article that explains it?bland-pharmacist-96854
01/23/2023, 4:42 PMnode_group_options
, for example, for min_size
?green-daybreak-91402
01/24/2023, 5:56 PMfamous-jelly-72366
01/25/2023, 7:26 AMloud-australia-45001
01/25/2023, 8:32 AMaws.msk.ScramSecretAssociation
, but it is replacing the association instead of adding.
Is importing the resource and modifying it the suggested way or there is another?bland-pharmacist-96854
01/25/2023, 1:18 PMfamous-jelly-72366
01/25/2023, 1:53 PMpolite-napkin-90098
01/25/2023, 9:15 PMpurple-megabyte-83002
01/25/2023, 10:29 PM@pulumi/awsx@1.0.1
and following https://www.pulumi.com/docs/guides/crosswalk/aws/elb/#manually-configuring-listeners.
It says
const alb = new awsx.lb.NetworkLoadBalancer("web-traffic");
const httpListener = alb.createListener("http-listener", {
port: 80,
protocol: "HTTP",
defaultAction: {
type: "redirect",
redirect: {
protocol: "HTTPS",
port: "443",
statusCode: "HTTP_301",
},
},
});
but locally I get an error
TS2339: Property 'createListener' does not exist on type 'NetworkLoadBalancer'
.
Any idea?enough-pager-36335
01/26/2023, 12:39 PMrapid-engineer-12203
01/26/2023, 2:59 PMStrict-Transport-Security
Content-Security-Policy
X-Frame-Options
X-Content-Type-Options
X-XSS-Protection
It successfully deployed when I have deployed the changes into my personal testing account.
When I am trying deploy those into my deployment accounts it fails with following error
error updating CloudFront Response Headers Policy (94c6753d-9e56-4ed9-84ba-415369322fec): InvalidIfMatchVersion: The If-Match version is missing or not valid for the resource.
Any ideas on this issue ?green-tailor-15840
01/26/2023, 8:00 PMaws
-> awsnative
. Specifically an API where an Output
worked before, now hitting a runtime error with AWS’s CloudControl complaining that it expected type: String, found: JSONObject
. The API isn’t a direct mapping, formerly a plain object, now a ServiceKeyValuePairArgs
. Anyone experienced anything like this before? Filed an issue here.strong-helmet-83704
01/27/2023, 12:32 AMnarrow-finland-76022
01/27/2023, 3:30 AM