Skip to content

create the config if it doesnt exist  #5

@gkpty

Description

@gkpty

create the config file in
~/.torus/config
if it already exists read from the config file and initialize the environment variables.

the config file will have a really simple toml type format as the follwoing

[aws]
AWS_PROFILE=default
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=your-aws-access-key
AWS_SECRET_ACCESS_KEY=your-aws-secret-key

[godaddy]
GODADDY_API_KEY=your-godaddy-api-key
GODADDY_SECRET_KEY=your-godaddy-secret-key

[cloudflare]
CLOUDFLARE_API_KEY=your-cloudflare-api-key
CLOUDFLARE_EMAIL=your-cloudflare-login-email

you can also use a .env file to overwrite these credentials. you can use other profiles present in your ~/.aws/credentials as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions