awscc_iam_service_linked_role (Resource)

Resource Type definition for AWS::IAM::ServiceLinkedRole

Example Usage

Basic

resource "awscc_iam_service_linked_role" "elasticbeanstalk" {
  aws_service_name = "elasticbeanstalk.amazonaws.com"
  description      = "service linked role for AWS Elastic Beanstalk"
}

With custom suffix

resource "awscc_iam_service_linked_role" "autoscaling" {
  aws_service_name = "autoscaling.amazonaws.com"
  description      = "service linked role for AWS Auto Scaling"
  custom_suffix    = "TestSuffix"
}

Schema

Optional

Read-Only

Import

Import is supported using the following syntax:

$ terraform import awscc_iam_service_linked_role.example <resource ID>