GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - aws-samples/terraform-aws-identity-center: Manage AWS IAM Identity Center permission sets and account assignments with Terraform.

BranchesTags
Open more actions menu

Latest commit

 

History

55 Commits
55 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
examples
examples
 
 
modules
modules
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.terraform.lock.hcl
.terraform.lock.hcl
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
locals.tf
locals.tf
 
 
main.tf
main.tf
 
 
variables.tf
variables.tf
 
 
versions.tf
versions.tf
 
 

Repository files navigation

terraform-aws-identity-center

Manage AWS IAM Identity Center permission sets and account assignments with Terraform.

This pattern is twinned with terraform-aws-identity-center-users-and-groups.

Module Inputs

module "idc" {
  source              = "aws-samples/identity-center/aws"
  version             = "~> 1.3"
  permission_sets     = "./permission_sets.yml"
  account_assignments = "./account_assignments.yml"
}

permission_sets and account_assignments are defined using yaml templates. These module inputs should point at the yaml file location. Example permission_sets.yml and account_assignments.yml.

Each grant (principal, account, permission set) must appear only once across all account assignment blocks. See duplicate assignments.

Optional Inputs

module "idc" {
  ... 
  policies = "./policies/"
}

policies is used for inline policies on permission sets. This input should point at a directory of IAM policy json files. Example policies directory.

Users and Groups

Users and groups can be created with: terraform-aws-identity-center-users-and-groups. the modules are de-coupled for aws customers using an external identity provider (idp).

If you are using terraform-aws-identity-center-users-and-groups, you can pass its principal_ids output instead of using a depends_on to link the two modules.

module "idc" {
  ...
  principal_ids = module.idc_users_and_groups.principal_ids
}

With depends_on, any change to users or groups can replace every account assignment. With principal_ids, only assignments for changed principals are affected. Principals not in principal_ids are still looked up.

To build it yourself, key on configured names so keys are known at plan time:

principal_ids = {
  groups = { for g in aws_identitystore_group.this : g.display_name => g.group_id }
  users  = { for u in aws_identitystore_user.this : u.user_name => u.user_id }
}

Template Files

The module accepts template files (.yml.tpl or .yaml.tpl). These can be inputted alongside regular yaml files.

module "idc" {
  ...
  permission_sets     = "./permission_sets.yml"
  account_assignments = "./account_assignments.yml.tpl"
  template_variables = {
    management       = var.management_account_id
    audit            = var.audit_account_id
    session_duration = "8"
    relay_state      = "https://eu-west-3.console.aws.amazon.com"
  }
}

template_variables inserts variables into template files. See permission_sets.yml.tpl and account_assignments.yml.tpl for examples with the above inputs. See template files for suggestions.

Related Resources

  • AWS IAM Identity User Guide
  • Terraform Registry: aws-samples/identity-center/aws

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

Manage AWS IAM Identity Center permission sets and account assignments with Terraform.

registry.terraform.io/modules/aws-samples/identity-center/aws/latest

Topics

awsidentityidentitycenterssoterraform

Resources

Readme
MIT-0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

38 stars

Watchers

2 watching

Forks

8 forks
Report repository

Releases

Used by

Contributors

Languages

Generated from amazon-archives/__template_MIT-0
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.