AWS Elastic Container Service example for AWS Maniac live stream
It is an example that I have prepared for the live stream from AWS Certification support group for Associate level preparations done as a part of AWS Maniac initiative.
- Docker (
>= 19.03.6
). - MySQL (
>= 8.0
) - use Docker for that:docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=localInstance2020 -p 3306:3306 -d mysql:8
# Login:
curl -i -XPOST -H "Content-Type: application/x-www-form-urlencoded" \
-d "[email protected]&password=12345" https://localhost/login
# List all notes:
curl -i -H "Cookie: JSESSIONID=...; Path=/; HttpOnly" https://localhost/notes
# Create a note:
curl -i -XPUT -H "Cookie: JSESSIONID=...; Path=/; HttpOnly" -H "Content-Type: application/json" \
-d '{"title": "1st note", "message": "message", "location": "Poland"}' https://localhost/notes
SERVER_PORT
:5000
SPRING_DATASOURCE_URL
:jdbc:mysql:https://${RDS_HOSTNAME}:${RDS_PORT}/${RDS_DB_NAME}
SPRING_DATASOURCE_USERNAME
:${RDS_USERNAME}
SPRING_DATASOURCE_PASSWORD
:${RDS_PASSWORD}
SPRING_JPA_DATABASE_PLATFORM
:org.hibernate.dialect.MySQL8Dialect
SPRING_JPA_HIBERNATE_DDL_AUTO
:update