Cloud formation template for Datazone Environmentprofile

0

So I am trying to create a datazone environment profile through Cloudformation template, I was able to create datazone domain, project successfully through CFT. I have done Environment Blueprint Configuration(DefaultDataLake) manually, where I have created to manage access role and Provisioning role. Also given the required policy in manage access role. Also added the manage policy role in lake formation (AWS Lake Formation >Administrative roles and tasks). So whenever I am creating the environmentprofile and environment through aws console its getting created successfully but whenever I am trying it through CFT its giving me an error [User is not permitted to perform operation: CreateEnvironmentProfile (Service: DataZone, Status Code: 403,]

AWSTemplateFormatVersion: '2010-09-09'
Description: Datazone environment

Resources:
  Environment: 
    Type: AWS::DataZone::EnvironmentProfile
    Properties:
      AwsAccountId: #accountID
      AwsAccountRegion: us-east-2
      DomainIdentifier: #domainidentifier
      EnvironmentBlueprintIdentifier: DefaultDataLake
      Name: #environmentprofilename
      ProjectIdentifier: #projectname

error

1개 답변
1

Hello,

As you might already know, when we create resources from a CloudFormation, we get an option to provide an IAM role for Cloud Formation to assume to spin up the resources. If not provided, the role that you are logged into the AWS console as will be used for this. If you are indeed passing a role to CloudFormation rto assume, can you please review that first.

Also, what you can do to troubleshoot is effectively is that you can navigate to the Cloud Trail console and compare the cloud trail event on the API call "CreateEnvironmentProfile" when it is being performed from console and from CFT. This might point us to any potential difference between the API calls.

Thank you!

AWS
Aravind
답변함 3달 전

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

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

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

관련 콘텐츠