Create a new user in the console, assign it no permissions, but make sure to download the credentials.
Go to the user and copy the user ARN:
arn:aws:iam::<account-id>:user/of-connector-test
This can also be done via the CLI
aws iam create-user --user-name of-connector-test
aws iam create-access-key --user-name of-connector-test
Now install the connector stack via the UI or via the cli
USER_ARN=$(aws iam get-user --user-name of-connector-test --output=json | jq -r ".User.Arn")
aws cloudformation deploy \
--stack-name of-connector-example \
--template-file cloudformation.yml \
--capabilities CAPABILITY_NAMED_IAM \
--parameter-overrides ConnectorAccountArn=$USER_ARN
The messages will be the usual S3 notification format, for example
{
"Records": [
{
"eventVersion": "2.1",
"eventSource": "aws:s3",
"awsRegion": "eu-central-1",
"eventTime": "2021-12-22T13:34:59.690Z",
"eventName": "ObjectCreated:Copy",
"userIdentity": {
"principalId": "AWS:AIDA...."
},
"requestParameters": {
"sourceIPAddress": "95.90.240.192"
},
"responseElements": {
"x-amz-request-id": "KHS4JGPWTAN06JJR",
"x-amz-id-2": "5MWIyqTq0rIhOFdIu/6jBYcOaPj3...."
},
"s3": {
"s3SchemaVersion": "1.0",
"configurationId": "e76e4eb1-911a-43de-89f9-c1f8541b80a9",
"bucket": {
"name": "eu-central-1-of-connector-ex-bucket",
"ownerIdentity": {
"principalId": "ABSRQAS2T5Q66"
},
"arn": "arn:aws:s3:::eu-central-1-of-connector-ex-bucket"
},
"object": {
"key": "upload/cf-designer.png",
"size": 84181,
"eTag": "21a4958708420644d20ac12e6ccb28fc",
"sequencer": "0061C32983A5EC6864"
}
}
}
]
}