Skip to content

[M07] Automatyczne wykonanie scryptu tworzącego użytkownika DB #6

@pnowosie

Description

@pnowosie

Skrypt
Dokumentacja AWS - Run a Python script from GitHub

Polecenie które działa. Należy wykonać z jumphost-a nie z app

aws ssm send-command --document-name "AWS-RunRemoteScript" \
  --instance-ids "i-01...6c" \
  --parameters file://memes-generator/data/parameters/create-db-user.json
         "GRANT\n\n----------ERROR-------\nERROR:  role \"appuser\" already exists\n",

Check which instances are ready to receive command [docs]

aws ssm describe-instance-information \
  --output text --query "InstanceInformationList[*]"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions