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

Error creating SSM document: DocumentAlreadyExists: Document with same name SSM-SessionManagerRunShell already exists #34

Open
benzaam opened this issue Aug 11, 2020 · 1 comment

Comments

@benzaam
Copy link

benzaam commented Aug 11, 2020

Hi,

Creating the ssm document fails if one has already run the session manager quick setup, which creates the default document SSM-SessionManagerRunShell.

Here is the output i get from terraform apply:
Error: Error creating SSM document: DocumentAlreadyExists: Document with same name SSM-SessionManagerRunShell already exists

I couldn't figure out how to modify the SSM-SessionManagerRunShell document from Terraform since it's an AWS owned document.
Do i need to import it first?

Thx,
Benjamin

@shmileee
Copy link

shmileee commented Jul 7, 2021

You have to manually delete the default document:

aws ssm delete-document --name SSM-SessionManagerRunShell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants