I am trying to create a Data pipeline to copy the data from postgres to an s3 bucket. I created an IAM role for the ec2
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"datapipeline:*",
"ec2:*",
"rds-db:connect",
"rds:Describe*",
"s3:*",
"sdb:*",
"sns:*",
"sqs:*"
],
"Resource": "*"
}
]
}
However, I get the following error: No policy attached to the role - unable to validate policy for 'data-pipeline-ec2-trial'
I know that I need to create an instance profile with EC2 rather than a role with EC2 for Data pipeline.
I was also following this tutorial https://adamtheautomator.com/aws-data-pipelines/