내용으로 건너뛰기

A problem has occurred during connection: Unable to assume role 'arn:aws:iam::<account_id>:role/<my_role>'

0

Hello I've been trying to set up DataZone (BluePrint is Default Data Lake). When I try to open data portal with IAM Role I received following message : A problem has occurred during connection: Unable to assume role 'arn:aws:iam::<account_id>:role/<my_role>'

I didn't find how to configure correctly ExecutionRole' policy.

  Policies:
    - PolicyName: DataLakeAccessPolicy
      PolicyDocument:
        Version: 2012-10-17
        Statement:
          - Effect: Allow
            Action:
              - kms:*
            Resource: !GetAtt KmsStack.Outputs.EncryptionKeyArn
          - Effect: Allow
            Action:
            - datazone:ListDomains
            - datazone:ListEnvironmentBlueprintConfigurations
            - datazone:PutEnvironmentBlueprintConfiguration
            - datazone:GetDomain
            - datazone:ListDomains
            - datazone:GetEnvironmentBlueprintConfiguration
            - datazone:ListEnvironmentBlueprints
            - datazone:GetEnvironmentBlueprint
            - datazone:ListAccountEnvironments
            - datazone:DeleteEnvironmentBlueprintConfiguration
            - datazone:GetIamPortalLoginUrl  # access to portal
            - ram:*
            - sso:*              
            Resource: '*'                
  ManagedPolicyArns:
    - arn:aws:iam::aws:policy/service-role/AmazonDataZoneDomainExecutionRolePolicy
    - arn:aws:iam::aws:policy/AmazonDataZoneRedshiftGlueProvisioningPolicy
    - arn:aws:iam::aws:policy/AmazonAthenaFullAccess
    - arn:aws:iam::aws:policy/AmazonS3FullAccess

Thanks.

I check these posts:

질문됨 2년 전804회 조회

1개 답변
0
수락된 답변

Hello, Thank you for sending your Question regarding Execution Role policy configuration for your Data Zone. To assume a role, you need to follow the following steps:

  1. Create an IAM Role: First, you need to create an IAM role that defines the permissions and trust relationship for the role. You can do this in the AWS Management Console, AWS CLI, or through AWS CloudFormation. Refer to DataZone custom policy.
  2. Grant Trust Relationship: When creating the role, you need to specify a trust relationship that defines which AWS accounts, services, or identities are allowed to assume the role.
  3. Define Permissions: Attach one or more IAM policies to the role to grant the desired permissions. These policies define what actions and resources the role can access. Kindly refer also to Assume IAM Role for more information. For more clarifications on DataZone IAM Policies, please also go through DataZone IAM policies. I hope you find this information helpful. Good day!
AWS

답변함 2년 전

전문가

검토됨 일 년 전

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

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

관련 콘텐츠