Difference between revisions of "Terraform resource: aws ssoadmin managed policy attachment"

From wikieduonline
Jump to navigation Jump to search
Line 18: Line 18:
  
 
== See also ==
 
== See also ==
 +
* {{AWS policies}}
 
* {{AWS SSO}}
 
* {{AWS SSO}}
 
* {{identitystore}}
 
* {{identitystore}}
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Revision as of 18:15, 27 February 2023

aws_ssoadmin_managed_policy_attachment

Official example

data "aws_ssoadmin_instances" "example" {}

resource "aws_ssoadmin_permission_set" "example" {
  name         = "Example"
  instance_arn = tolist(data.aws_ssoadmin_instances.example.arns)[0]
}

resource "aws_ssoadmin_managed_policy_attachment" "example" {
  instance_arn       = tolist(data.aws_ssoadmin_instances.example.arns)[0]
  managed_policy_arn = "arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup"
  permission_set_arn = aws_ssoadmin_permission_set.example.arn
}

See also

Advertising: