Some notes on the key features of AWS, used in Giraffael.
- EC2 instance: Used to host remote server with assigned Elastic IP address.
- An Elastic Block Storage was attached to the instance to provide extra storage space.
- A Security Group was attached to the instance to specify Inbound and Outbound Rules
- An Elastic Network Interface was attached to the instance, representing a virtual network card.
- Secret in Secrets Manager: Used to store information of API keys.
- file structures that hold these info:
- cert.pem:
- -----BEGIN CERTIFICATE-----
- cert
- -----END CERTIFICATE-----
- key.pem:
- -----BEGIN PRIVATE KEY-----
- key
- -----END PRIVATE KEY-----
- .env: OPENAI_API_KEY=””
- Roles in IAM:
- EC2-SecretsManager-Access: Used to get EIP and secret values from Secrets Manager.
- Giraffael2-get-server-elastic-ip-function-role-4t3uo992: Used to allow Read-Only-Access of EIP.
- Policies in IAM:
- AWSLambdaBasicExecutionRole: Attached to a Role to help accessing EIP of the instance.
- Load Balancer in EC2: Not used, but might be needed in the future for auto-scaling of Client Authentication (Key exchanges, signature authentication, etc.).