Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Terraform AWS provider built with an awssso IAM rule group feature that is under development

Notifications You must be signed in to change notification settings

TakeScoop/terraform-provider-awssso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Provider for AWS SSO Admin Role

Archived: The official AWS provider now includes data.aws_iam_roles which can be used to find one (or many) SSO roles.


This provider exposes a data source that to be merged into the upstream terraform-provider-aws project. The data source fetches the IAM role created in the target AWS account by the AWS SSO instance for the AWS organization.

Configuring the provider

This project uses the same provider setup from terraform-provider-aws

Example usage

data "aws_ssoadmin_instances" "sso" {}

resource "aws_ssoadmin_permission_set" "readonly" {
  instance_arn = tolist(data.aws_ssoadmin_instances.sso.arns)[0]
  name         = "ReadOnly"
}

data "awssso_role" "readonly" {
  permission_set_name = aws_ssoadmin_permission_set.readonly.name
}

output "role" {
  description = "IAM role ARN for the role created by the AWS SSO instance for the AWS organization."
  value       = data.awssso_role.sso_readonly.arn
}

About

Terraform AWS provider built with an awssso IAM rule group feature that is under development

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages