Amazon Genomics CLI error

0

When I run the following command: agc account activate

In order to be able to use the amazon genomics cli I get the following error:

2023-06-01T11:51:11Z ๐’Š  Activating AGC with bucket '' and VPC ''
Bootstrapping CDK... [---o] 1m49s
Activating account... [---o] 32s                                                                                                                 2023-06-01T11:53:31Z โœ˜  [WARNING] aws-cdk-lib.aws_ssm.StringParameterProps#type is deprecated.
2023-06-01T11:53:31Z โœ˜    - type will always be 'String'
2023-06-01T11:53:31Z โœ˜    This API will be removed in the next major release.
2023-06-01T11:53:31Z โœ˜  [WARNING] aws-cdk-lib.aws_ssm.ParameterType is deprecated.
2023-06-01T11:53:31Z โœ˜    these types are no longer used
2023-06-01T11:53:31Z โœ˜    This API will be removed in the next major release.
2023-06-01T11:53:31Z โœ˜  [WARNING] aws-cdk-lib.aws_ssm.ParameterType#STRING is deprecated.
2023-06-01T11:53:31Z โœ˜
2023-06-01T11:53:31Z โœ˜    This API will be removed in the next major release.
2023-06-01T11:53:31Z โœ˜  current credentials could not be used to assume 'arn:aws:iam::820518495555:role/cdk-agc-lookup-role-820518495555-us-east-1', but are for the right account. Proceeding anyway.
2023-06-01T11:53:31Z โœ˜  [WARNING] aws-cdk-lib.aws_ssm.StringParameterProps#type is deprecated.
2023-06-01T11:53:31Z โœ˜    - type will always be 'String'
2023-06-01T11:53:31Z โœ˜    This API will be removed in the next major release.
2023-06-01T11:53:31Z โœ˜  [WARNING] aws-cdk-lib.aws_ssm.ParameterType is deprecated.
2023-06-01T11:53:31Z โœ˜    these types are no longer used
2023-06-01T11:53:31Z โœ˜    This API will be removed in the next major release.
2023-06-01T11:53:31Z โœ˜  [WARNING] aws-cdk-lib.aws_ssm.ParameterType#STRING is deprecated.
2023-06-01T11:53:31Z โœ˜
2023-06-01T11:53:31Z โœ˜    This API will be removed in the next major release.
2023-06-01T11:53:31Z โœ˜  [Error at /Agc-Core] You are not authorized to perform this operation.
2023-06-01T11:53:31Z โœ˜
2023-06-01T11:53:31Z โœ˜  Found errors
2023-06-01T11:53:31Z โœ˜   error="exit status 1"
Error: an error occurred invoking 'account activate'
with variables: {bucketName: vpcId: publicSubnets:false customTags:map[] subnets:[] amiId:}
caused by: exit status 1

In the IAM I have given the following permissions:

IAMFullAccess AmazonSSMManagedInstanceCore AmazonSSMFullAccess AmazonS3FullAccess AmazonElasticContainerRegistryPublicPowerUser AmazonElasticContainerRegistryPublicFullAccess AmazonEC2ContainerRegistryFullAccess AWSCloudFormationFullAccess

What am I missing?

์งˆ๋ฌธ๋จ ์ผ ๋…„ ์ „368ํšŒ ์กฐํšŒ
3๊ฐœ ๋‹ต๋ณ€
1

From document[1] , agc account active creates vpc when you not specified --vpc option So you may have to add permission about creating VPC like AmazonVPCFullAccess

[1] agc account activate

profile picture
์ „๋ฌธ๊ฐ€
๋‹ต๋ณ€ํ•จ ์ผ ๋…„ ์ „
profile picture
์ „๋ฌธ๊ฐ€
๊ฒ€ํ† ๋จ ์ผ ๋…„ ์ „
0

Thanks _takahash. This indeed helps. But now I get:

Failed resources:
2023-06-01T16:31:27Z โœ˜  Agc-Core | 4:28:40 PM | CREATE_FAILED        | AWS::EC2::InternetGateway             | Vpc/IGW (VpcIGWD7BA715C) 1 validation error detected: Value 'You are not authorized to perform this operation. Encoded authorization failure message
2023-06-01T16:31:27Z โœ˜  Agc-Core | 4:28:40 PM | CREATE_FAILED        | AWS::EC2::VPC                         | Vpc (Vpc8378EB38) 1 validation error detected: Value 'You are not authorized to perform this operation. Encoded authorization failure message
2023-06-01T16:31:27Z โœ˜   โŒ  Agc-Core failed: Error: The stack named Agc-Core failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: 1 validation error detected: Value 'You are not authorized to perform this operation.
2023-06-01T16:31:27Z โœ˜   โŒ Deployment failed: Error: Stack Deployments Failed: Error: The stack named Agc-Core failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: 1 validation error detected: Value 'You are not authorized to perform this operation.
๋‹ต๋ณ€ํ•จ ์ผ ๋…„ ์ „
0

Ensure the IAM role you're using with AGC has the necessary permissions to create resources in AWS. In this case, it appears that your IAM role might lack the ec2:CreateVpc and ec2:CreateInternetGateway permissions, which are required to create a VPC and an Internet Gateway in AWS. If your AWS account has restrictions, or if you're using an organizational account with Service Control Policies (SCPs), ensure that these restrictions or policies don't prevent you from creating VPCs and Internet Gateways.

profile picture
์ „๋ฌธ๊ฐ€
๋‹ต๋ณ€ํ•จ ์ผ ๋…„ ์ „

๋กœ๊ทธ์ธํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ๋กœ๊ทธ์ธํ•ด์•ผ ๋‹ต๋ณ€์„ ๊ฒŒ์‹œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ข‹์€ ๋‹ต๋ณ€์€ ์งˆ๋ฌธ์— ๋ช…ํ™•ํ•˜๊ฒŒ ๋‹ตํ•˜๊ณ  ๊ฑด์„ค์ ์ธ ํ”ผ๋“œ๋ฐฑ์„ ์ œ๊ณตํ•˜๋ฉฐ ์งˆ๋ฌธ์ž์˜ ์ „๋ฌธ์ ์ธ ์„ฑ์žฅ์„ ์žฅ๋ คํ•ฉ๋‹ˆ๋‹ค.

์งˆ๋ฌธ ๋‹ต๋ณ€ํ•˜๊ธฐ์— ๋Œ€ํ•œ ๊ฐ€์ด๋“œ๋ผ์ธ

๊ด€๋ จ ์ฝ˜ํ…์ธ