silly-london-94663
07/08/2024, 7:23 AMimport * as aws from "@pulumi/aws";
// Create VPC
const vpc = new aws.ec2.Vpc("test-security-group-vcp", {
cidrBlock: "10.1.0.0/16",
tags: {
Name: "test-security-group-vcp",
},
});
// Create security group
const securityGroup = new aws.ec2.SecurityGroup("test-security-group", {
name: "test-security-group",
description: "Allow some traffic",
vpcId: vpc.id,
ingress: [
{
protocol: "tcp",
fromPort: 2000,
toPort: 2000,
cidrBlocks: ["10.2.0.0/16"],
},
{
protocol: "tcp",
fromPort: 2000,
toPort: 2000,
cidrBlocks: ["10.3.0.0/16"],
},
{
protocol: "tcp",
fromPort: 2000,
toPort: 2000,
self: true,
},
],
});
When I run (or pulumi up
) first time, VPC and security group is set up properly.
But when I run this second time even though there's no change in source code, pulumi up
detects change in security group.
Is there any way to avoid change detection under this situation?
I found similar issue https://github.com/pulumi/pulumi-aws/issues/2947 but it is closed without resolution.
I appreciate any advise.
Thanks, in advance.hallowed-horse-57635
07/08/2024, 2:23 PMsilly-london-94663
07/09/2024, 12:13 AMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by