Skip to content
Menu
Billy Fisher
  • Home
  • Talks
  • About Me
  • Resume
Billy Fisher

Write Out keys.config

Posted on November 22, 2020November 29, 2020 by Billy

Now that we have the salts, we’ll want to use them to establish the keys.config:

def write_keys_config(wordpress_salts: dict):
    with open('wordpress/.ebextensions/keys.config', 'w') as keys_config:
        with open('.ebextensions/keys.config', 'r') as keys_template:
            keys_config.write(keys_template.read().format(wordpress_salts['AUTH_KEY'],
                                                          wordpress_salts['SECURE_AUTH_KEY'],
                                                          wordpress_salts['LOGGED_IN_KEY'],
                                                          wordpress_salts['NONCE_KEY'],
                                                          wordpress_salts['AUTH_SALT'],
                                                          wordpress_salts['SECURE_AUTH_SALT'],
                                                          wordpress_salts['LOGGED_IN_SALT'],
                                                          wordpress_salts['NONCE_SALT']).replace('`', '\`'))

And then in main:

print("Salting keys.config ...")
write_keys_config(get_wordpress_salts())

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

+ 80 = 84

Categories

  • Building the Elasticbeanstalk Source Bundle
  • Cloud Computing
  • Coding
  • Computing
  • Going Serverless on Wordpress for AWS
  • Uncategorized

This Site Hosted On

Amazon Web Services: ElasticBeanstalk, RDS, and EFS. Really enjoying just focusing in on the content and having ElasticBeanstalk, and the package build process, perform all of the LAMP and Wordpress updates, automatically. Using aws blueprint: aws_blueprint_ebs_wordpress_efs_rds

My Github Projects

  • api-gateway-custom-authorizers
  • async-http-client-gradle-scala
  • async-http-client-sbt-scala
  • aws-serverless-express
  • aws_api_gateway_http_proxy_redirect_rewrite
  • aws_blueprint_ebs_wordpress_efs_rds
  • aws_lambda_scala_ec2_reports
  • aws_serverless_application_model_python
  • bike-distributor-refactor
  • CRUDUsers
  • digital-ocean-jenkins-dev-environment
  • java-functional-tests
  • java9-hello-modules
  • kind-argo
  • nbbo
©2023 Billy Fisher | Theme: Wordly by SuperbThemes