Documentation
¶
Index ¶
Constants ¶
const ( EC2ServicePrincipal = "ec2.amazonaws.com" EKSServicePrincipal = "eks.amazonaws.com" )
Variables ¶
This section is empty.
Functions ¶
func GetAWSPrincipalAssumeRole ¶
func GetAWSPrincipalAssumeRole(e aws.Environment, serviceName []string) (*iam.GetPolicyDocumentResult, error)
func GetAWSPrincipalAssumeRoleWithActions ¶ added in v0.86.0
func GetAWSPrincipalAssumeRoleWithActions(e aws.Environment, serviceName []string, actions []string) (*iam.GetPolicyDocumentResult, error)
GetAWSPrincipalAssumeRoleWithActions builds an assume-role trust policy for the given service principals with a custom set of trust actions. EKS Auto Mode, for example, requires "sts:TagSession" in addition to "sts:AssumeRole" on the cluster service role.
Types ¶
This section is empty.