Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an example for using Pulumi with AWS Organizations #1330

Merged
merged 5 commits into from
Feb 3, 2023

Conversation

praneetloke
Copy link
Contributor

@praneetloke praneetloke commented Jan 12, 2023

Hello, I am working on a blog post that goes along with this example. I will open a PR for the blog post shortly and update this PR description.

In terms of merge order, this should be merged first before the blog post can be merged.

@github-actions
Copy link

PR is now waiting for a maintainer to run the acceptance tests.
Note for the maintainer: To run the acceptance tests, please comment /run-example-tests on the PR

## Deploying and running the program

Note that unlike other resources that can be created/destroyed easily,
this app creates an AWS account. Read the blog post about [organizing AWS accounts with Pulumi](https://www.pulumi.com/blog/organizing-aws-accounts-with-pulumi) to learn more.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a tentative link assuming that the blog post slug doesn't change during its review process.

Copy link
Member

@cnunciato cnunciato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Almost there I think. We should add some clarifying prose to the README that explains what the hard requirements are to deploy this successfully, and it looks like we may need to add some code or instructions as well to be able to destroy this cleanly -- specifically the orgUnit resource. (Indeed, I am somewhat stuck here myself, as I'm not sure what "child resources" still exist -- any tips would be appreciated!)

aws-ts-organizations/index.ts Outdated Show resolved Hide resolved
@@ -0,0 +1,40 @@
# AWS Organizations
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new?template=https://github.com/pulumi/examples/blob/master/aws-ts-organizations/README.md)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be up for adding a brief description of what this example does?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@praneetloke Checking in on this one. A couple of lines would be enough I think -- just something that makes it clear to viewers what the example does. You can link to the blog post as well (I often do this).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes. Thank you for the reminder on this one. I will add a brief intro.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks. We'll merge this as soon as that's done and then publish your post on Monday!

Copy link
Contributor Author

@praneetloke praneetloke Feb 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cnunciato I've just now added an intro. Can you please check the latest commit to see the changes I've made? Please do feel free to make suggestions for it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect. Thank you sir!

aws-ts-organizations/README.md Show resolved Hide resolved
aws-ts-organizations/README.md Outdated Show resolved Hide resolved
aws-ts-organizations/index.ts Show resolved Hide resolved
aws-ts-organizations/backupPolicy.ts Show resolved Hide resolved
aws-ts-organizations/index.ts Show resolved Hide resolved
aws-ts-organizations/backupPolicy.ts Show resolved Hide resolved
aws-ts-organizations/index.ts Show resolved Hide resolved
aws-ts-organizations/tagPolicy.ts Show resolved Hide resolved
@praneetloke
Copy link
Contributor Author

@cnunciato thanks for executing this program in your personal account. I, too, did that with my account. You caught some things I enabled in my account prior to running this app. I totally missed specifying those as prerequisites. Here's what I have enabled in my root/management account:

image

As for being unable to delete the org unit, I suspect it might have something to do with the account being closed and that it takes 90 days before it is actually gone. Admittedly, I actually did not attempt to delete mine because I still left them up and did not encounter the issue you did. I am glad you did, though (and thank you so much for doing that!) To your earlier point, I should note this in the README.

Here's a screenshot straight from their docs about closing member accounts in an organization:

image

@github-actions
Copy link

PR is now waiting for a maintainer to run the acceptance tests.
Note for the maintainer: To run the acceptance tests, please comment /run-example-tests on the PR

@scottslowe
Copy link
Contributor

/run-example-tests

@github-actions
Copy link

Please view the results of the PR Build Here

@github-actions
Copy link

PR is now waiting for a maintainer to run the acceptance tests.
Note for the maintainer: To run the acceptance tests, please comment /run-example-tests on the PR

@scottslowe
Copy link
Contributor

/run-example-tests

@github-actions
Copy link

Please view the results of the PR Build Here


Note that unlike other resources that can be created/destroyed easily,
this app creates an AWS account and closed accounts are in a suspended state
for 90 days. That means, you won't be able to delete the organizational until until
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for 90 days. That means, you won't be able to delete the organizational until until
for 90 days. That means, you won't be able to delete the organizational until

Copy link
Member

@cnunciato cnunciato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @praneetloke! I think all we need now is a little intro in the README that explains what the example does, and then we'll be there.

@github-actions
Copy link

github-actions bot commented Feb 2, 2023

PR is now waiting for a maintainer to run the acceptance tests.
Note for the maintainer: To run the acceptance tests, please comment /run-example-tests on the PR

@cnunciato cnunciato merged commit 563bf3a into pulumi:master Feb 3, 2023
@pulumi-staging pulumi-staging bot had a problem deploying to pulumi/aws-ts-s3-folder/dev February 3, 2023 06:48 Failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants