Is it possible to create an S3 bucket accessible only by a certain IAM user using policies in a Cloud-Formation template?
Yes, all these resources can be created using a CloudFormation template
S3 is not supported by CloudFormation.
No, you can only create the S3 bucket but not the IAM user.
No, in the same template you can only create the S3 bucket and the relative policy.
Explanations:
CloudFormation supports both S3 bucket creation and IAM policy creation. You can define an S3 bucket and attach an IAM policy that grants access to a specific user in the same template.
S3 is supported by CloudFormation, and you can create and manage S3 buckets using CloudFormation templates.
CloudFormation can create both S3 buckets and IAM users, along with their policies, within the same template.
You can create both the S3 bucket and IAM policy in the same CloudFormation template, so this option is incorrect.