Skip to main content
Version: 0.0.20

AWS IAM

Create an IAM role‚Äč

Install the AWS IAM module

SELECT * FROM iasql_install('aws_iam');

An AWS IAM role controls the access to the cloud resources that it is associated with via a JSON policy document that is stored in the role table. Below we create a role with a policy and apply the change.

INSERT INTO role (role_name, assume_role_policy_document)
VALUES ('ecs-assume-role', '{"Version": "2012-10-17", "Statement": [{"Sid": "", "Effect": "Allow", "Principal": {"Service": "ecs-tasks.amazonaws.com"},"Action": "sts:AssumeRole"}]}');

SELECT * FROM iasql_apply();