ecr: add s3 bucket and role policy for FVP job
for TFC-92. The summary of changes:
Create the S3 bucket for tuxtput
Create policy to access it, and attach it to existing ecr_push_pull role
make an instance profile that grants access to ecr_push_pull for instances it is attached to
Change-Id: Iba6520b9d533ff92255deb3b7bea9d2c708d082e
diff --git a/modules/resources/instance_profile/main.tf b/modules/resources/instance_profile/main.tf
new file mode 100644
index 0000000..8b071ab
--- /dev/null
+++ b/modules/resources/instance_profile/main.tf
@@ -0,0 +1,4 @@
+resource "aws_iam_instance_profile" "profile" {
+ name = var.name
+ role = var.role_name
+}