Before you deploy, you must have the following in place:
- AWS Account
- GitHub Account
- AWS CLI
- AWS SAM
- Python 3.9, NodeJs v18 and npm
In this step we deploy all resources this solution requires, including AWS AppSync Schema and its resolvers, via AWS SAM.
The first step is to execute sam build so the solution can prepare all the Python libraries to be installed.
sam build
Next step is to deploy the solution
sam deploy -g --capabilities CAPABILITY_IAM CAPABILITY_AUTO_EXPAND CAPABILITY_NAMED_IAM
In the questions, provide the stack-name as geotrack-backend the region you are deploying the solution and accept all the default options. The output should be similar to:
Setting default arguments for 'sam deploy'
=========================================
Stack Name [geotrack-v2]:
AWS Region [us-west-2]:
Parameter ProjectName [geotrack]:
Parameter EnvironmentName [dev]:
#Shows you resources changes to be deployed and require a 'Y' to initiate deploy
Confirm changes before deploy [Y/n]: y
#SAM needs permission to be able to create roles to connect to the resources in your template
Allow SAM CLI IAM role creation [Y/n]: y
#Preserves the state of previously provisioned resources when an operation fails
Disable rollback [y/N]: n
Save arguments to configuration file [Y/n]: y
SAM configuration file [samconfig.toml]:
SAM configuration environment [default]:
Confirm the deploy of the changeset and wait for the to finish.
./webappconfig.sh