https://www.runatlantis.io/ logo
Title
o

oponomarov-tu

04/21/2023, 7:53 AM
Hey! Is this a valid command to run target apply (as per documentation):
atlantis apply -p production -- -target='module.infra.module.mssql-1.aws_ebs_volume.disks["xvdi"]'
The reason why I'm asking is because once we commented this on a PR, — Atlantis ran a full apply for the project. Atlantis version:
"version": "v0.23.5 (commit: 9119089) (build date: 2023-04-17T21:36:27.834Z)"
Terraform version: v1.3.7 Atlantis server logs:
{
  "@timestamp": "2023-04-21T07:04:12.316Z",
  "level": "info",
  "ts": "2023-04-21T07:04:12.316Z",
  "caller": "events/events_controller.go:545",
  "msg": "parsed comment as command=\"apply\" verbose=false dir=\"\" workspace=\"\" project=\"production\" flags=\"-target=module.infra.module.mssql-1.aws_ebs_volume.disks[\\\"xvdi\\\"]\"",
  "json": {
    "gh-request-id": "X-Github-Delivery=<redacted>"
  },
  "container_name": "atlantis",
  "source": "stderr",
  "container_id": "<redacted>",
  "ecs_cluster": "atlantis",
  "ecs_task_arn": "<redacted>",
  "ecs_task_definition": "atlantis:64"
}
Running same targetting without Atlantis works fine.
p

PePe Amengual

04/21/2023, 4:10 PM
you need the plan to be targeted as well
👍 1
o

oponomarov-tu

04/21/2023, 4:10 PM
Thanks!
i

Isaac Wilson

04/21/2023, 6:55 PM
Don’t forget to escape your quotes around
xvdi
too