Skip to content

Instantly share code, notes, and snippets.

@jritsema
Created May 2, 2016 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jritsema/8d4060e703c9a287753e1e0db5c41afd to your computer and use it in GitHub Desktop.
Save jritsema/8d4060e703c9a287753e1e0db5c41afd to your computer and use it in GitHub Desktop.
aws_iam_user.es: Creating...
  arn:       "" => "<computed>"
  name:      "" => "srv_user1"
  path:      "" => "/"
  unique_id: "" => "<computed>"
aws_iam_user.es: Creation complete
aws_iam_access_key.es: Creating...
  secret:            "" => "<computed>"
  ses_smtp_password: "" => "<computed>"
  status:            "" => "<computed>"
  user:              "" => "srv_user1"
aws_elasticsearch_domain.es: Creating...
  access_policies:                                         "" => "{\"Statement\":[{\"Action\":\"es:*\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::xxxxxx:user/srv_user1\"}}],\"Version\":\"2012-10-17\"}"
  advanced_options.#:                                      "" => "1"
  advanced_options.rest.action.multi.allow_explicit_index: "" => "<computed>"
  arn:                                                     "" => "<computed>"
  cluster_config.#:                                        "" => "<computed>"
  domain_id:                                               "" => "<computed>"
  domain_name:                                             "" => "es1"
  ebs_options.#:                                           "" => "<computed>"
  endpoint:                                                "" => "<computed>"
  snapshot_options.#:                                      "" => "1"
  snapshot_options.0.automated_snapshot_start_hour:        "" => "23"
aws_iam_access_key.es: Creation complete
Error applying plan:

1 error(s) occurred:

* aws_elasticsearch_domain.es: InvalidTypeException: Error setting policy: [  {
    "Version": "2012-10-17",
    "Statement": [
      {
        "Effect": "Allow",
        "Action": "es:*",
        "Principal": {
          "AWS": "arn:aws:iam::xxxxxxxx:user/srv_user1"
        }
      }
    ]
  }
]
	status code: 409, request id: 5ce1b757-1060-11e6-800a-c363f7f5dcbd

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment