Skip to content

Commit

Permalink
Use 'aws_iam_session_context' to obtain issuer ARN.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jun 28, 2021
1 parent 561c22f commit 419e077
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ resource "aws_subnet" "test" {
data "aws_caller_identity" "current" {}
data "aws_iam_session_context" "current" {
arn = data.aws_caller_identity.current.arn
}
resource "aws_vpc_endpoint_service" "test" {
acceptance_required = false
Expand All @@ -153,7 +157,7 @@ resource "aws_vpc_endpoint_service" "test" {
resource "aws_vpc_endpoint_service_allowed_principal" "test" {
vpc_endpoint_service_id = aws_vpc_endpoint_service.test.id
principal_arn = data.aws_caller_identity.current.arn
principal_arn = data.aws_iam_session_context.current.issuer_arn
}
`, rName))
}

0 comments on commit 419e077

Please sign in to comment.