Amazon Connect security profile creation via Terraform scripts

0

HI, We are trying to create a security profile in amazon connect via Terraform scripts. While creating a security profile, how to get relevant terraform supported values for permissions that need to be added inside the permission argument of the TF file. For eg. Terraform supported security profile value for Routing: Routing Profiles etc. what should be the value we write in TF file?

Regards JO

질문됨 2년 전513회 조회
2개 답변
1
수락된 답변

Terraform should be able to support the security profile permissions listed in the Amazon Connect documentation here: https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-list.html

Based on this list, you can choose which ones to add. You can also combine the permissions as per your desired value. For example, "Routing: Routing Profiles" will need all the listed "RoutingPolicies" permissions (Create, Edit and View) declared in your TF file.

profile picture
joahna
답변함 2년 전
0

Terraform can natively support Connect profiles with the aws_connect_security_profile resource. Below is an example, but you can find detailed examples and documentation on the Hashicorp documentation registry.

Hashicorp Documentation (external link) https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/connect_security_profile

resource "aws_connect_security_profile" "example" {
  instance_id = "aaaaaaaa-bbbb-cccc-dddd-111111111111"
  name        = "example"
  description = "example description"

  permissions = [
    "BasicAgentAccess",
    "OutboundCallAccess",
  ]

  tags = {
    "Name" = "Example Security Profile"
  }
}
profile pictureAWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠