https://pulumi.com logo
l

lemon-gigabyte-76458

08/25/2023, 11:24 AM
I made a github issue for this, but the AWS EC2 Security Group docs reference a resource we should be using "The
aws_vpc_security_group_egress_rule
and
aws_vpc_security_group_ingress_rule
resources have been added to address these limitations and should be used for all new security group rules." Does anyone know where the docs for these resources are? I can't find any other Security Group resources than the ones under the EC2 module of the docs. As far as I can tell there's no aws.vpc module
d

dry-keyboard-94795

08/25/2023, 11:34 AM
It looks like these will be added in v6. For now, you can use this: https://www.pulumi.com/registry/packages/aws/api-docs/ec2/securitygrouprule/
l

lemon-gigabyte-76458

08/25/2023, 11:46 AM
Huh, ok that resource has the same warning though, so I don't see why I would pick one over the other I mean maybe hold off on adding the reference to the docs until it's actually released because I spent a ridiculous amount of time in the docs looking for something that doesn't exist
d

dry-keyboard-94795

08/25/2023, 11:47 AM
Agree that there's a few warnings and references that shouldn't exist; and does add a lot of confusion. They're generated from the Terraform provider. Understandable that a few of these get missed as there's a lot of resources
l

lemon-gigabyte-76458

08/25/2023, 11:48 AM
Fair enough, alright well thanks for the explanation and help
d

dry-keyboard-94795

08/25/2023, 11:48 AM
I think if it's using the
aws_vpc_...
structure (ie, with underscores), it won't exist in Pulumi
l

lemon-gigabyte-76458

08/25/2023, 11:50 AM
Right, I just assumed since that was grabbed straight from the terraform docs there would be some module for a vpc somewhere that I was missing. since it seems that generally there's an aws.module to correspond to the terraform aws_ version
2 Views