best-train-86003
07/19/2021, 1:47 PMbumpy-translator-35180
07/20/2021, 7:40 AMpurple-orange-91853
07/20/2021, 9:27 PM"snapshotArns": [],
and reimport the state. I am not sure what is causing this to break as it has worked before.
aws:elasticache:Cluster (redis-temp):
error: unmarshaling urn:pulumi:temp::aws-us-east-1-redis::aws:elasticache/cluster:Cluster::redis-temp's instance state: could not read field snapshot_arns: '' expected type 'string', got unconvertible type '[]interface {}', value: '[]'
colossal-ice-49128
07/21/2021, 12:25 AMastonishing-dinner-89046
07/21/2021, 4:13 AMaws.ec2.get_security_group
. I’m able to export the default vpc id and default SG id but it’s throwing an error. Any ideas?
# Retrieve the Default VPC
defaultvpc = aws.ec2.get_vpc(
default=True
)
# Retrieve the Default Security Group
default_sg = aws.ec2.get_security_group(name='default')
Diagnostics:
ValueError: unexpected input of type GetSecurityGroupResult
error: an unhandled error occurred: Program exited with non-zero exit code: 1
Outputs:
+ default_sg : "sg-9ac15fe8"
+ vpc_id : "vpc-595e9c4g"
and if I run pulumi up again w/o changing anything, it’s a different error.
RuntimeError: Event loop is closed
exception calling callback for <Future at 0x10ffc1e20 state=finished returned RegisterResourceResponse>
Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/concurrent/futures/_base.py", line 328, in _invoke_callbacks
callback(self)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/futures.py", line 374, in _call_set_state
dest_loop.call_soon_threadsafe(_set_state, destination, source)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 764, in call_soon_threadsafe
self._check_closed()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 508, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Outputs:
+ default_sg : "sg-9ac15fe8"
+ vpc_id : "vpc-595e9c4g"
brainy-dawn-85792
07/21/2021, 12:52 PMambitious-afternoon-55254
07/21/2021, 3:52 PMtags_all
doesn’t seem to do anything in my tests.
2. When I delete the resource (remove the code from pulumi and pulumi up
) — the spot request is cancelled, but the underlying EC2 instance continues to run. How do I get pulumi to shut down the EC2 instance as well?
import pulumi
import pulumi_aws as aws
test_instance = aws.ec2.SpotInstanceRequest(
"test_spot_instance",
ami="ami-09e67e426f25ce0d7",
spot_price='0.55',
spot_type='one-time',
subnet_id='subnet-302a5579',
associate_public_ip_address=True,
ebs_optimized=True,
ebs_block_devices=[ebs],
iam_instance_profile="ecsInstanceRole",
instance_type="m5.xlarge",
key_name="test-keypair",
source_dest_check=True,
tags={
"Name": "TestSpot",
},
tags_all={
"Name": "TestSpotAll",
"tags_all": "yes",
},
)
echoing-zebra-28421
07/21/2021, 6:03 PMnew aws.apigatewayv2.Route(
test-route,
{
apiId: apigw.id,
routeKey: "POST /api/pets",
target: pulumi.interpolate`integrations/${integration.id}`,
},
{ provider },
);
But, I need to create a route to pass a parameter to the endpoint
new aws.apigatewayv2.Route(
test-route,
{
apiId: apigw.id,
routeKey: "GET /api/pets/3",
target: pulumi.interpolate`integrations/${integration.id}`,
},
{ provider },
);
How do I create the route that receives a parameter in the url of /api/pets/$id
?
Could it be something like that? routeKey: "GET /api/pets/{id}",
busy-journalist-6936
07/21/2021, 11:43 PMtall-beard-99429
07/22/2021, 2:03 PM<http://kubernetes.io/cluster/|kubernetes.io/cluster/><name>
as a tag, but I can't see any example of how to do that with the Key -> Value pairbroad-hairdresser-1495
07/22/2021, 3:00 PMConflictsWith: "network_interface"
when creating instance with source_dest_check=
aws.ec2.Instance("romlaz_frog_1",
instance_type="t2.micro",
availability_zone="eu-west-1a",
root_block_device=root_block_device_,
ami=instance["ami"], tags=instance.get("tags", None), key_name=instance["key_name"],
network_interfaces=[{"device_index": 0,
"network_interface_id": "eni-0f74fbfd28bc...."}],
source_dest_check=True, # <<< same issue when False is used
)
>pulumi up
Previewing update (simple):
Type Name Plan Info
pulumi:pulumi:Stack aws_project-simple
└─ aws:ec2:Instance romlaz_frog_1 1 error
Diagnostics:
aws:ec2:Instance (romlaz_frog_1):
error: aws:ec2/instance:Instance resource 'romlaz_frog_1' has a problem: ConflictsWith: "network_interface": conflicts with source_dest_check. Examine values at 'Instance.NetworkInterfaces'.
warning: A new version of Pulumi is available. To upgrade from version '3.7.0' to '3.7.1'
Note that this works fine when not using source_dest_check=
, and that default is True for that setting.broad-hairdresser-1495
07/23/2021, 11:26 AMaws:
in tag as key
This is not possible to create/change/import in pulumi:
>pulumi up
Previewing update (simple):
Type Name Plan Info
pulumi:pulumi:Stack aws_project-simple 15 messages
~ └─ aws:ec2:Instance romlaz_frog_1 update [diff: ~tags]
Do you want to perform this update? details
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:simple::aws_project::pulumi:pulumi:Stack::aws_project-simple]
~ aws:ec2/instance:Instance: (update)
[id=i-052b6a60438596375]
[urn=urn:pulumi:simple::aws_project::aws:ec2/instance:Instance::romlaz_frog_1]
[provider=urn:pulumi:simple::aws_project::pulumi:providers:aws::default_4_6_0::561a80d6-caf9-44d9-95a7-df4210902d44]
~ tags: {
+ aws:a_bug: "not creating or importing when tag Key starts with 'aws:'"
}
Do you want to perform this update? yes
Updating (simple):
Type Name Status Info
pulumi:pulumi:Stack aws_project-simple **failed** 1 error
~ └─ aws:ec2:Instance romlaz_frog_1 **updating failed** [diff: ~tags]; 1 error
Diagnostics:
aws:ec2:Instance (romlaz_frog_1):
error: 1 error occurred:
* updating urn:pulumi:simple::aws_project::aws:ec2/instance:Instance::romlaz_frog_1: 1 error occurred:
* error updating tags: error tagging resource (i-052b6a60438596375): InvalidParameterValue: Value ( '' ) for parameter Tag key is invalid. Tag key cannot be null or empty.
status code: 400, request id: d7950a12-e85f-4bfa-bb88-ad5c6766c9a5
pulumi:pulumi:Stack (aws_project-simple):
error: update failed
great-sunset-355
07/27/2021, 3:47 AMgreen-intern-27665
07/27/2021, 8:57 AMttl=aws.dynamodb.TableTtlArgs(
attribute_name="TimeToExist",
enabled=False,
))
I can create the tablet without any issue but if I redeploy my stack I get and error informing that ttl
is already defined.
Any idea about how can I execute this statement just the first time that I create the table and not the rest of the times that I update the stack?bright-scientist-61638
07/27/2021, 11:24 AMInstance
, Volume
and VolumeAttachment
to do this.
I'm now trying to figure out how to init the volume and mount it within the instance. I'm doing this via instance user data.
However, when I make changes to userData
and re-run pulumi up
I get this error
* Error attaching volume (vol-0170f920a526fb90d) to instance (i-003ab040459a35189), message: "vol-0170f920a526fb90d is already attached to an instance", code: "VolumeInUse"
I think this isn't working because the volume is still attached to the old instance. Can pulumi handle detaching the volume?tall-beard-99429
07/29/2021, 9:19 AMClusterCreationRoleProvider
and how to use it to assume-role?ripe-shampoo-80285
07/30/2021, 4:38 PMfuture-diamond-31373
07/30/2021, 7:11 PMlambda.CallbackFunction
magic functions. My issue is that every lambda ends up including the entire project’s node_modules
directory. I traced the behavior to codePaths.ts and found that read-package-tree searches for the package.json
in the project root (where the yaml files live). It seems that the api gives us the option to define the packages we want excluded via CodePathOptions
, but the default behavior is to include every package.
Is there an elegant way to only include specified package on a per lambda basis, or perhaps to tell the callback function which package.json
to use without creating multiple pulumi projects? I know one option is to use manual function resources but I like the closure serialization and dev friendliness of magic functions. I dabbled with the idea adding a package.json
directory path as a parameter into the api so that readPackageTree
could use a dynamic path rather than hardcoding it to the root
Just wanted to gauge if the community has encountered similar problems and / or how other people handle lambda packaging. If this is an issue that more teams run into, I’d be happy to put up a PR.adamant-dress-73325
07/30/2021, 8:23 PMproud-pizza-80589
08/01/2021, 11:37 AMgreat-sunset-355
08/02/2021, 12:35 PMallow_overwrite=True
with r53.Record()
Assume:
<http://cert.domain.com|cert.domain.com>
- is the name
1) create the certificate in region eu-west-1
for <http://cert.domain.com|cert.domain.com>
, this generates validation CNAME: <http://1234.aws.validate.com|1234.aws.validate.com>
, creates CNAME in r53
2) create the certificate in region us-east-1
for <http://cert.domain.com|cert.domain.com>
, this generates validation CNAME: <http://1234.aws.validate.com|1234.aws.validate.com>
, overwrites CNAME in r53
3) delete the certificate from step 2) - removes CNAME from r53
however cert in step 1) may still require this CNAME to be preset or does the CertificateValidation takes care of recreation?cuddly-nail-19784
08/03/2021, 6:05 AMgreat-sunset-355
08/03/2021, 11:37 AMif provider.region != "wanted region":
raise ValueError("provider has bad region")
I cannot write a statement above because it's an Output again and there is no way I know to test output for conditionswhite-secretary-18260
08/04/2021, 4:03 PMplugin for aws provider
we are stuck on 3.32.0
and there is not apple/arm version of that plug-in. We’d like to update to 3.38.1
and we did so in the package.json file, but we are still getting:
error: could not load plugin for aws provider 'urn:pulumi:master::alphamap::pulumi:providers:aws::default_3_32_0': no resource plugin 'aws-v3.32.0' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource aws v3.32.0`
full-artist-27215
08/04/2021, 8:12 PMmany-salesmen-89069
08/06/2021, 9:56 AMawsx.ec2.Vpc
and need to modify the routing tables for VPC peering. I'm wondering what's the best way to go about this? I can't seem to find a routing table option in the awsx.ec2.Vpc
argumentsbitter-rain-31542
08/06/2021, 1:54 PMadamant-dress-73325
08/06/2021, 8:09 PMgreat-sunset-355
08/09/2021, 10:59 AMfuture-morning-53976
08/09/2021, 1:23 PMfuture-morning-53976
08/09/2021, 1:23 PMgreat-sunset-355
08/09/2021, 1:39 PMfuture-morning-53976
08/09/2021, 2:53 PM