Q: What is a maintenance window?
A maintenance window is a weekly two-hour-long time slot during which AWS Elastic Beanstalk will initiate platform updates if managed platform updates is enabled and a new version of the platform is available. For example, if you select a maintenance window that begins every Sunday at 2 AM, AWS Elastic Beanstalk will initiate the platform update sometime between 2-4 AM every Sunday. It is important to note that, depending on the configuration of your applications, updates could complete outside of the maintenance window.
The maintenance window is set on a per-environment basis, providing you the option to set different maintenance windows for your various application components or applications. This allows environment updates to be staggered if you do not want multiple pieces of your application to be updated at the same time. If you enable managed platform updates but do not specify a maintenance window, a default weekly 2-hour window will be assigned for your environment. If you want to change when maintenance is performed on your behalf, you can do so by modifying the managed update configuration in the AWS Management Console or by using the UpdateEnvironment API.
Generate a random string to use in your CloudFormation templates: which could then be used for example for an RDS master password.
Usage
- Create a new Lambda function with the code in lambda_function.py. No special permissions are required (unless you want to encrypt the string),so it can run with the basic execution role.
- Run up the sample template. Pass in the ARN of the lambda function.
- Check out the output of the stack.
I'm trying to configure an EC2 with known SSH host keys on boot using cloud-init in a cloudformation template. But now I can't SSH into the server. It's tricky to debug:-) Here's the userdata par. Given: awsaccesskeyid and awsaccesssecretkey of an AWS account that administers an route 53 Hosted zone domain (say example.com). Aim: Use the provided credentials as an other AWS user and update the Hosted zone with a record set (dummy.example.com is 56.22.55.11).
Parameters
- Length (required)
Generate Secret Key For Rails Aws Cloudformation Account
The length of string to generate. Windows ssh generate public key.
- Punctuation (optional, defaults false)
Aws Cloudformation Parameters
Include the punctuation characters in the generated string
- RDSCompatible (optional, defaults false)
If using for an RDS master password, do not include the characters /,@,' in the generated random string.These aren't allowed to be used in an RDS master password.
- KeyId (optional)
If specified, encrypt the random generated string with the KMS key identified by the KeyId parameterand return it in the 'EncryptedRandomString' attribute. Obviously means that the lambda function needspermission to encrypt with this key.