Resource: aws_iam_service_specific_credential

Provides an IAM Service Specific Credential.

Example Usage

resource "aws_iam_user" "example" {
  name = "example"
}

resource "aws_iam_service_specific_credential" "example" {
  service_name = "codecommit.amazonaws.com"
  user_name    = aws_iam_user.example.name
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import IAM Service Specific Credentials using the service_name:user_name:service_specific_credential_id. For example:

import {
  to = aws_iam_service_specific_credential.default
  id = "`codecommit.amazonaws.com:example:some-id`"
}

Using terraform import, import IAM Service Specific Credentials using the service_name:user_name:service_specific_credential_id. For example:

% terraform import aws_iam_service_specific_credential.default `codecommit.amazonaws.com:example:some-id`