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

已提問 3 個月前檢視次數 158 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南