Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error creating backup plan fails on first apply #6

Open
sblack4 opened this issue Nov 5, 2020 · 1 comment
Open

[BUG] Error creating backup plan fails on first apply #6

sblack4 opened this issue Nov 5, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sblack4
Copy link
Contributor

sblack4 commented Nov 5, 2020

Describe the bug
don't let me butcher the description, here is the real thing. On the second apply it just worked

Error: error creating Backup Plan: InvalidParameterValueException: A Backup vault with ARN arn:aws:backup:us-east-1:951703363424:backup-vault:nexus-efs-vault does not exist
{
  RespMetadata: {
    StatusCode: 400,
    RequestID: "72df00c7-d794-49a7-9e4d-43fa678d4cff"
  },
  Code_: "ERROR_3201",
  Context: "arn:aws:backup:us-east-1:951703363424:backup-vault:nexus-efs-vault",
  Message_: "A Backup vault with ARN arn:aws:backup:us-east-1:951703363424:backup-vault:nexus-efs-vault does not exist"
}

To Reproduce

module "nexus" {
  source  = "rhythmictech/nexus/aws"
  version = "~> 0.2.0"

  name                           = var.nexus_name
  ami_id                         = data.aws_ami.nexus_latest.image_id
  asg_additional_security_groups = [data.terraform_remote_state.network.outputs.admin_access_sg_id]
  asg_instance_type              = var.nexus_instance_type
  # asg_key_name                   = module.instance-keypair.key_name
  asg_subnets                    = data.terraform_remote_state.network.outputs.private_subnets
  enable_efs_backups             = true
  efs_subnets                    = data.terraform_remote_state.network.outputs.private_subnets
  elb_allowed_cidr_blocks        = []
  elb_certificate                = var.nexus_alb_certificate
  elb_subnets                    = data.terraform_remote_state.network.outputs.public_subnets
  elb_internal                   = false
  tags                           = local.tags
  vpc_id                         = data.terraform_remote_state.network.outputs.vpc_id
}
@sblack4 sblack4 added the bug Something isn't working label Nov 5, 2020
@sblack4 sblack4 self-assigned this Nov 5, 2020
@sblack4
Copy link
Contributor Author

sblack4 commented Jul 29, 2021

This likely is caused by things either getting created in the wrong order or the creation not being recognized until the second apply. I'm going to leave this open for informational purposes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant