# Update AWS CLI in Neo4j Enterprise AMI

**URL:** <https://community.neo4j.com/t/update-aws-cli-in-neo4j-enterprise-ami/22738>\
**Category:** Neo4j Graph Platform\
**Tags:** aws, cli\
**Created:** [August 1, 2020, 7:33pm UTC](https://community.neo4j.com/t/update-aws-cli-in-neo4j-enterprise-ami/22738 "2020-08-01T19:33:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![frederik.willaert](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/frederik.willaert/32/13065_2.png) [@frederik.willaert](https://community.neo4j.com/u/frederik.willaert)\
**Post date:** [August 1, 2020, 7:33pm UTC](https://community.neo4j.com/t/update-aws-cli-in-neo4j-enterprise-ami/22738/1 "2020-08-01T19:33:52Z")

</div>

I'm using the neo4j-enterprise-1-4.1.0-apoc 2020-06-24T10\_00\_48Z AMI with id ami-0e3c7c3ddaf9cb758, as mentioned for eu-west-1 in the cloudformation template 'neo4j-enterprise-standalone-stack-4.1.0.json'.

This comes with AWS CLI version 1.14.44, which is over 2 years old.

I want to use aws secretsmanager get-secret-value to set the neo4j admin password \_without having any trace of the password in environment variables or user data.

Would it be possible to update the Neo4j AMI?  
An alternative procedure to achieve the same without AWS Secrets Manager could also be interesting.

Many thanks!

---

<div class="post-metadata">

**Author:** ![tomas1](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/tomas1/32/14429_2.png) [@tomas1](https://community.neo4j.com/u/tomas1)\
**Post date:** [October 12, 2020, 8:47pm UTC](https://community.neo4j.com/t/update-aws-cli-in-neo4j-enterprise-ami/22738/2 "2020-10-12T20:47:25Z")

</div>

The only thing I got working was this:  
PASSWORD=`aws secretsmanager get-secret-value --secret-id neo4jPassword | jq -r .SecretString | jq -r .password`

aws cloudformation deploy   
--region $AWS\_DEFAULT\_REGION   
--stack-name $STACKNAME   
--template-file $SINGLE\_TEMPLATE   
--parameter-overrides ParameterKey=VolumeSizeGB,ParameterValue=10   
ParameterKey=VolumeType,ParameterValue=gp2   
ParameterKey=Password,ParameterValue= **$PASSWORD**   
--capabilities CAPABILITY\_NAMED\_IAM CAPABILITY\_AUTO\_EXPAND

More info: [Deploying Neo4j on AWS Using CloudFormation - Knowledge Base](https://neo4j.com/developer/kb/deploy-aws-cloudformation/)
