broad-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.bumpy-grass-54508
07/22/2021, 3:24 PMInstanceArgs
class, SourceDestCheck
is of type Input<bool>?
meaning nullable, and is not initialized to any value so will default to null
https://github.com/pulumi/pulumi-aws/blob/master/sdk/dotnet/Ec2/Instance.cs#L676
so even though the docs say "default is true", setting the value to true is different than leaving it untouchedbroad-hairdresser-1495
07/22/2021, 3:38 PMaws.ec2.Instance(..)
https://www.pulumi.com/docs/reference/pkg/aws/ec2/instance/#source_dest_check_python
also this parameter works perfect when used in aws.ec2.NetworkInterface(source_dest_check=False)
bumpy-grass-54508
07/22/2021, 3:57 PMtrue
or false
or None
broad-hairdresser-1495
07/22/2021, 4:01 PMaws.ec2.Instance(..)
parameter source_dest_check=
is not working (or working automagically)
and then when using aws.ec2.NetworkInterface(source_dest_check=<False or True>)
this parameter will inherit into Instance source_dest_check=
when not using this parameter...None
bumpy-grass-54508
07/22/2021, 4:26 PMNone
and will default to None
, but then later on depending on other conditions the actual "default" value will come into play