README
The AWS Cloud infrastructure for the victorsmirnov.blog
The AWS CDK project to build the AWS infrastructure for the personal blog project.
Notes
Useful commands
npm run buildcompile typescript to js.npm run build:watchwatch for changes and compile.cdk --profile <name> diffcompare deployed stack with current state.cdk --profile <name> deploy --no-executecreate change.cdk --profile <name> deploydeploy the stack.
Install CloudWatch agent
Documentation https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/download-cloudwatch-agent-commandline.html
Copy configuration file src/amazon-cloudwatch-agent.json to the server's folder /opt/aws/amazon-cloudwatch-agent/.
Check agent status on the server with sudo service amazon-cloudwatch-agent status.
And my answer on StackOverflow about how to parse time from the logs: https://stackoverflow.com/questions/71148794/when-logging-to-cloudwatch-logs-in-a-json-format-what-is-the-name-of-the-timesta/73242108#73242108
Server and client certificates
Parameters for tcpdump to show incoming HTTP headers
Backup database with MySQL dump
Last updated