ZupIT/ritchie-formulas

Update RIT AWS APPLY TERRAFORM formula README

Closed this issue ยท 4 comments

What would you like ?

Why is this needed ?

  • With the Ritchie Portal (ongoing) those READMEs will be used to share formulas information with the community, and the better they are, the easiest it will be for the community to use them.

Examples

Hello! I would like to work on this issue ๐Ÿ˜ƒ

It's all yours @eduardorcury , thank you for contributing ! ๐Ÿ‘

Hello again!
While running the rit aws apply terraform command, the first input asked is a selection between the two repositories in the image below. But none of them exist, and I am unable to type my own repository URL. Shouldn't the command ask me to type a new URL, instead of selecting between those two repositories?

image

The config.json code for this input is: https://github.com/ZupIT/ritchie-formulas/blob/master/aws/apply/terraform/config.json

    {
      "default": "https://github.com/zupit/iti-stack-core",
      "items": [
        "https://github.com/zupit/iti-stack-core",
        "https://github.com/zupit/iti-stack-tools"
      ],
      "label": "Select your repository URL: ",
      "name": "repository",
      "type": "text",
      "tutorial": "Choose one option"
    }

Hi @eduardorcury

This formula may have been implemented for people with access to those repositories, and probably hasn't been updated since then.

In that case, you can update this input in the config.json file of the formula, asking for any URL:

{
      "default": "https://github.com/zupit/iti-stack-core",
      "label": "Type the repository URL: ",
      "name": "repository",
      "type": "text",
      "tutorial": "Inform a github repo URL (ex: https://github.com/zupit/iti-stack-core)"
    }

Then, to test the formula locally, you can use the rit build formula command as informed here: https://docs.ritchiecli.io/tutorials/formulas/build-a-formula

Feel free to ask any question if needed ๐Ÿ‘