Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. {
  2. "data": [
  3. {
  4. "aws_ami": {
  5. "image_id": {
  6. "filter": {
  7. "name": "name",
  8. "values": [
  9. "foo-base-centos7-67"
  10. ]
  11. },
  12. "most_recet": true,
  13. "owners": [
  14. "0"
  15. ]
  16. }
  17. } },
  18. { "aws_iam_policy_document": {
  19. "artifact_store": {
  20. "statement": {
  21. "actions": [
  22. "s3:GetObject",
  23. "s3:ListBucket"
  24. ],
  25. "effect": "Allow",
  26. "resources": [
  27. "arn:aws:s3:::foo-artifacts-store",
  28. "arn:aws:s3:::foo-artifacts-store/*"
  29. ],
  30. "sid": "Stmt1495472332000"
  31. }
  32. },
  33. "assume_role": {
  34. "statement": {
  35. "actions": [
  36. "sts:AssumeRole"
  37. ],
  38. "principals": {
  39. "identifiers": [
  40. "ec2.amazonaws.com"
  41. ],
  42. "type": "service"
  43. },
  44. "sid": ""
  45. }
  46. }
  47. } }
  48. ],
  49. "provider": {
  50. "aws": {
  51. "region": "eu-central-1"
  52. }
  53. },
  54. "resource": [{
  55. "aws_iam_instance_profile": {
  56. "iam_instance_profile": {
  57. "name": "alpha-eu_prod-1",
  58. "role": "${aws_iam_role.iam_role.name}"
  59. }
  60. }},
  61. {"aws_iam_role": {
  62. "iam_role": {
  63. "assume_role_policy": "${data.aws_iam_policy_document.assume_role.json}",
  64. "name": "alpha-eu_prod-1",
  65. "path": "/"
  66. }
  67. }},
  68. {"aws_iam_role_policy": {
  69. "iam_role_policy_artifact_store": {
  70. "name": "artifact_store",
  71. "policy": "${data.aws_iam_policy_document.artifact_store.json}",
  72. "role": "${aws_iam_role.iam_role.name}"
  73. }
  74. }},
  75. {"aws_instance": {
  76. "foo": { }
  77. }}
  78. ],
  79. "terraform": {
  80. "backend": {
  81. "s3": {
  82. "bucket": "foo-tfstate",
  83. "key": "usprod/1/foo-alpha.tfstate",
  84. "region": "us-west-1"
  85. }
  86. }
  87. }
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement