# Push code to Github Repo

## Create a github repository&#x20;

Created a Github Repository and pushed files to github.

{% embed url="<https://github.com/rishawsingh/terraform-automate>" %}

To hide your AWS access key and secret key in the `providers.tf` file when using Terraform with GitHub, you can use GitHub secrets.

Here's an example of how to use GitHub secrets with Terraform:

1. Create a new secret in your GitHub repository by going to your repository page and clicking on "Settings" > "Secrets" > "New repository secret".
2. Name your secret something like "AWS\_ACCESS\_KEY\_ID" and paste your AWS access key as the value.
3. Create another secret named "AWS\_SECRET\_ACCESS\_KEY" and paste your AWS secret key as the value.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rishaws-projects.gitbook.io/devops-project/initial/push-code-to-github-repo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
