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ヶ月前153ビュー
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ