Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic secrets processing for GitHub integration #246

Closed
wants to merge 21 commits into from

Conversation

grafnu
Copy link
Collaborator

@grafnu grafnu commented Feb 15, 2022

No description provided.


echo Cleaning existing state...

terraform state rm `terraform state list`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The terraform state is kept in the remote backend bucket, it must not be erased

@grafnu
Copy link
Collaborator Author

grafnu commented Feb 17, 2022 via email


terraform init $*

terraform import google_project.udmi-project ${GCP_PROJECT_NAME:?}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This must be removed because the state already includes the project


terraform import google_project.udmi-project ${GCP_PROJECT_NAME:?}

terraform import google_storage_bucket.tf-bucket ${GCP_PROJECT_NAME}-terraform
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This must be removed because the state already includes the storage bucket

@grafnu
Copy link
Collaborator Author

grafnu commented Feb 17, 2022 via email

@pisuke
Copy link
Collaborator

pisuke commented Feb 17, 2022

This is just a utility function (clean) -- if you don't call it then it won't be used/removed! Maybe it's not useful... I still can't get my system to work so it's not clear to me what does need to be cleaned out to get to stable state.

It looks dangerous to me. If we lose the state, we must start from scratch, which is not what we want. I would remove it to avoid misuse.

@grafnu
Copy link
Collaborator Author

grafnu commented Feb 17, 2022 via email

@grafnu grafnu closed this Mar 16, 2022
@grafnu grafnu deleted the scripty branch August 23, 2022 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants