Top
Enterprise Postgres 18 for Kubernetes User's Guide

4.5.1 Preparation

Save credentials and other settings required for linking with CloudWatch in Secrets and ConfigMaps.

Prepare two files, credentials and config, which describe credentials and other settings according to the format specified by the AWS client interface. Specifying access_key_id and secret_access_key in the credentials file is mandatory.

An example of registering authentication information using the following configuration file is explained.

credentials   # credentials file
config        # config file

Create a ConfigMap to store config files. Specify config for the key name. The name of the ConfigMap is arbitrary (here my-aws-config).

$ oc create configmap my-aws-config --from-file=config=config -n my-namespace

Create a secret to save the credentials file. Specify credentials for the key name. The name of the Secret is arbitrary (here my-aws-credentials).

$ oc create secret generic my-aws-credentials --from-file=credentials=credentials -n my-namespace

See

Refer to below for AWS client interface configuration files.

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html