An AWS IAM iClient lets Celigo assume an IAM role in your AWS account, so Amazon S3, Amazon Redshift, AWS Service, AWS Bedrock, and AWS Textract connections can authenticate without stored access keys. You create the iClient in Celigo, create a matching IAM role in AWS, and then add the role's ARN back to the iClient. This article walks you through each part, including the role name and permissions each connector needs.
Prerequisites: Your AWS account permissions let you create and modify IAM roles and IAM permissions policies.
Keep the AWS console open in a separate window; you copy values in both directions.
Role name and permissions by connector
The trust setup is the same for every connector, but the IAM role name must start with a connector-specific prefix, and each connector needs its own permissions policy. If your connections need different permissions, create a separate iClient and role for each, such as s3-prod-iam-iclient and redshift-prod-iam-iclient.
| Connector | Role name must begin with | Example | Permissions policy |
|---|---|---|---|
| Amazon S3 | celigo-file-adaptor |
celigo-file-adaptor-s3-prod |
Amazon S3 |
| Amazon Redshift | celigo-data-warehouse-adaptor |
celigo-data-warehouse-adaptor-redshift-prod |
Amazon Redshift |
| AWS Service | celigo-http-adaptor |
celigo-http-adaptor-s3-prod |
The policy for the AWS service named in the connection's Service name |
| AWS Bedrock | celigo-http-adaptor |
celigo-http-adaptor-bedrock-prod |
AWS Bedrock |
| AWS Textract | celigo-http-adaptor |
celigo-http-adaptor-textract-prod |
AWS Textract |
Start the iClient in Celigo
- Go to Resources
, and then select iClients.
- Select Create iClient.
- Enter a Name, such as
s3-prod-iam-iclient. - Set Type to AWS IAM.
- Copy the Celigo AWS account ID.
- Generate the External ID, and then copy it.
Leave the pane open. You add the role ARN after you create the role in AWS.
Create the IAM role in AWS
- In the AWS IAM console, create a role.
- For Trusted entity type, select AWS account, and then select Another AWS account.
- Paste the Celigo AWS account ID you copied.
- Under Options, select Require external ID, and then paste the External ID you copied.
- Enter a role name that begins with the prefix for your connector. See Role name and permissions by connector.
- Add the permissions policy for your connector as an inline policy. See Permissions policies.
- Create the role.
For AWS's own instructions, see Create a role to delegate permissions to an IAM user.
Finish the iClient in Celigo
- In the AWS IAM console, open the role, and then copy its ARN.
- In the Celigo iClient pane, paste it into Role ARN.
- Select Save.
An ARN identifies the role but isn't a secret.
You can now select the iClient in a supported connection. Each connector's setup article is listed under Related articles.
Permissions policies
The trust relationship lets Celigo assume the role, but grants no access to any AWS service on its own. Add the permissions policy for your connector to the role. Each policy is the minimum for the task described; add any other permissions your flows need.
Amazon S3 policy
Lists the bucket and reads and writes its objects. Replace <your-bucket> with your bucket name.
{
"Version": "2012-10-17",
"Statement": [
{ "Effect": "Allow", "Action": "s3:HeadBucket", "Resource": "arn:aws:s3:::<your-bucket>" },
{ "Effect": "Allow", "Action": "s3:ListBucket", "Resource": "arn:aws:s3:::<your-bucket>" },
{ "Effect": "Allow", "Action": ["s3:GetObject", "s3:PutObject"], "Resource": "arn:aws:s3:::<your-bucket>/*" }
]
}Amazon Redshift policy
Gets temporary database credentials from the IAM identity, so you don't need a separate database user, and runs queries through the Redshift Data API. Replace <region>, <aws-account-id>, <cluster-name>, and <database-name> with your values.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowRedshiftIAMCredentials",
"Effect": "Allow",
"Action": "redshift:GetClusterCredentialsWithIAM",
"Resource": "arn:aws:redshift:<region>:<aws-account-id>:dbname:<cluster-name>/<database-name>"
},
{
"Sid": "RedshiftDataApi",
"Effect": "Allow",
"Action": ["redshift-data:ExecuteStatement", "redshift-data:DescribeStatement", "redshift-data:GetStatementResult"],
"Resource": "arn:aws:redshift:<region>:<aws-account-id>:dbname:<cluster-name>/<database-name>"
}
]
}AWS Bedrock policy
To allow every Bedrock API:
{
"Version": "2012-10-17",
"Statement": [{ "Effect": "Allow", "Action": "bedrock:*", "Resource": "*" }]
}To allow only specific models, replace <AWS_REGION>, <MODEL_ID>, and <YOUR_AWS_ACCOUNT_ID>:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream", "bedrock:Converse", "bedrock:ConverseStream"],
"Resource": [
"arn:aws:bedrock:<AWS_REGION>::foundation-model/<MODEL_ID>",
"arn:aws:bedrock:<AWS_REGION>:<YOUR_AWS_ACCOUNT_ID>:inference-profile/*"
]
},
{
"Effect": "Allow",
"Action": ["bedrock:ListFoundationModels", "bedrock:GetFoundationModel", "bedrock:ListInferenceProfiles", "bedrock:GetInferenceProfile"],
"Resource": "*"
}
]
}AWS Textract policy
Textract APIs generally require "Resource": "*", so restrict which documents Textract can read with the S3 policy instead.
To allow every Textract API:
{
"Version": "2012-10-17",
"Statement": [{ "Effect": "Allow", "Action": "textract:*", "Resource": "*" }]
}To allow only selected APIs:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"textract:DetectDocumentText", "textract:AnalyzeDocument", "textract:AnalyzeExpense", "textract:AnalyzeID",
"textract:StartDocumentTextDetection", "textract:GetDocumentTextDetection",
"textract:StartDocumentAnalysis", "textract:GetDocumentAnalysis"
],
"Resource": "*"
}
]
}