https://pulumi.com logo
Title
a

adorable-gpu-98268

03/02/2022, 8:16 PM
Another question, this time AWS related: How do I “EnableSharingWithAwsOrganization” using pulumi? Or is this something that I have to enable manually?
l

little-cartoon-10569

03/02/2022, 8:28 PM
The docs (built from the equivalent Terraform docs) don't explicitly say, but I infer that this has to be done outside Pulumi: https://www.pulumi.com/registry/packages/aws/api-docs/ram/principalassociation/
Provides a Resource Access Manager (RAM) principal association. Depending if RAM Sharing with AWS Organizations is enabled, the RAM behavior with different principal types changes.
a

adorable-gpu-98268

03/02/2022, 8:29 PM
👍 Will do that
l

little-cartoon-10569

03/02/2022, 8:29 PM
And https://www.pulumi.com/registry/packages/aws/api-docs/ram/resourceassociation/
NOTE: Certain AWS resources (e.g., EC2 Subnets) can only be shared in an AWS account that is a member of an AWS Organizations organization with organization-wide Resource Access Manager functionality enabled. See the Resource Access Manager User Guide and AWS service specific documentation for additional information.
b

billowy-army-68599

03/02/2022, 8:35 PM
could easily write a dynamic provider for this I think
l

little-cartoon-10569

03/02/2022, 8:37 PM
Since it's once-and-once-only per account, even that might be more effort than needed...
a

adorable-gpu-98268

03/02/2022, 8:37 PM
For me it’s not worth it, as it’s just:
aws ram enable-sharing-with-aws-organization
but for pulumi it would be a nice-to-have, as you can stay in the code
Anyway I’m not really sure at what level people start using infrastructure as code and what level is manual setup
l

little-cartoon-10569

03/02/2022, 8:50 PM
It's more likely to come to AWS Native than AWS Classic. Might already be there, in fact?
Nope, not there yet.