worried-city-86458
09/03/2021, 4:13 AMnew SecurityGroupRule($"{awsEksPrefix}-1",
new SecurityGroupRuleArgs
{
Type = "ingress",
Protocol = "tcp",
FromPort = 0,
ToPort = 65535,
SourceSecurityGroupId = internalSgId,
SecurityGroupId = clusterSgId
},
new CustomResourceOptions { Provider = awsProvider });
new SecurityGroupRule($"{awsEksPrefix}-2",
new SecurityGroupRuleArgs
{
Type = "ingress",
Protocol = "tcp",
FromPort = 0,
ToPort = 65535,
SourceSecurityGroupId = internetSgId,
SecurityGroupId = clusterSgId
},
new CustomResourceOptions { Provider = awsProvider });
Fails with error:
Duplicate resource URN 'urn:pulumi:alpha::aws-eks::aws:ec2/securityGroupRule:SecurityGroupRule::alpha-aws-eks-2'; try giving it a unique name
But I am specifying unique names!?bored-table-20691
09/03/2021, 4:22 AMworried-city-86458
09/03/2021, 4:35 AMbored-table-20691
09/03/2021, 4:56 AMworried-city-86458
09/04/2021, 5:54 AMbored-table-20691
09/04/2021, 5:56 AMworried-city-86458
09/08/2021, 10:39 PMDuplicate resource URN 'urn:pulumi:alpha::aws-eks::aws:cloudformation/stack:Stack::alpha-aws-eks-sg-rules'; try giving it a unique name
// cluster security group rules for legacy ingress; work around duplicate resource urn issue
Logger.LogDebug("Creating eks cluster security group rules");
var clusterSgrTemplate = Output.Tuple(clusterSgId, eksNodeInternalElbSgId, eksNodePublicElbSgId)
.Apply(((string ClusterSgId, string InternalSgId, string InternetSgId) tuple) =>
RenderTemplate("EksSecurityGroupRules.yaml", ReadResource, new { tuple.ClusterSgId, tuple.InternalSgId, tuple.InternetSgId }));
new Pulumi.Aws.CloudFormation.Stack($"{awsEksPrefix}-sg-rules",
new StackArgs { TemplateBody = clusterSgrTemplate },
new CustomResourceOptions { Provider = awsProvider });
AWSTemplateFormatVersion: 2010-09-09
Resources:
InternalIngress:
Type: AWS::EC2::SecurityGroupIngress
Properties:
GroupId: {{ clusterSgId }}
IpProtocol: tcp
FromPort: 0
ToPort: 65535
SourceSecurityGroupId: {{ internalSgId }}
InternetIngress:
Type: AWS::EC2::SecurityGroupIngress
Properties:
GroupId: {{ clusterSgId }}
IpProtocol: tcp
FromPort: 0
ToPort: 65535
SourceSecurityGroupId: {{ internetSgId }}
billowy-army-68599
09/08/2021, 11:43 PMworried-city-86458
09/08/2021, 11:44 PMbillowy-army-68599
09/08/2021, 11:45 PMpulumi stack export
and/or sharing the full code with me so I can try repro? DM is okay