Skip to content

69 support irsa#74

Merged
sshi100 merged 8 commits intomainfrom
69-support-IRSA
Aug 31, 2020
Merged

69 support irsa#74
sshi100 merged 8 commits intomainfrom
69-support-IRSA

Conversation

@sshi100
Copy link
Copy Markdown
Contributor

@sshi100 sshi100 commented Aug 31, 2020

Please help review @bmonkman

@sshi100 sshi100 requested a review from bmonkman August 31, 2020 17:35
# application_policy_list = [
# {
# service_account = "app1"
# namespace = "piggycloud-me"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe just "my-app" instead of "piggycloud"? And just one map in the list to make it shorter?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

# Create policies
resource "aws_iam_policy" "irsa" {
count = length(var.application_policy_list)
name_prefix = var.project
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should probably be project + environment in case someone has two environments in a single aws account.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done


# define policy documents for applications
# sample policies
data "aws_iam_policy_document" "resource_access_app1" {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In all these files can you just make it a single example? The second one doesn't really provide any benefit.

# Application policy list
application_policy_list = [
{
service_account = "app1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about we change this service account name to "backend-service" or something and then also change the zero-deployable-backend project to use this service account?

@sshi100 sshi100 merged commit e01c4c2 into main Aug 31, 2020
@sshi100 sshi100 deleted the 69-support-IRSA branch August 31, 2020 21:39
bmonkman added a commit that referenced this pull request Oct 10, 2020
* initial commits for IRSA support

* fixes with irsa

* refresh naming

* refresh naming

* Updated README for IRSA

* fixes per review

* Added more detailed documentation

* adjusted per review

Co-authored-by: Bill Monkman <[email protected]>
@sshi100 sshi100 self-assigned this Mar 16, 2021
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.

Create an easy way to set up new roles and serviceaccounts for user applications

2 participants