Skip to main content
Version: Next


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": ""},"Action": "sts:AssumeRole"}]}');

SELECT * FROM iasql_apply();