-
Notifications
You must be signed in to change notification settings - Fork 915
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
CI/CD - Error when running 01-resman GitHub workflow (tf-config, PERMISSION_DENIED) #691
Comments
Hey Michael, there were some bugs in the CI/CD implementation for stage 1, we sent a PR to fix them last Friday. Can you try patching with that version? |
Thanks for the fast feedback.I'll give it a try as soon as possible. |
I've updated my fast-modules, fast-bootstrap, and fast-resman to daily-2022.06.17 (hopefully correctly). I was trying to compare the configuration of the service accounts prefix-prod-bootstrap-1 and prefix-prod-resman-1, but couldn't spot differences in the places I looked. Any hints? |
did you also update the workflow? one the errors we had was using the wrong SA in stage1+ CI/CD |
Hmm, I cannot see any changes in the workflow. That would be Shouldn't
|
the SA is the right one |
Thanks! |
I just tested it and it's working fine for me: I had to do a small patch to add an extra attribute to the token mapping to support my condition, I will push it in a few minutes but I don't think it matters for you. Can you paste here the tfvars for
My supsicionis your workload identity federation provider is not working for both repos. |
Actually wait, I was still using an older version, going to try again and report back. |
I can confirm it works. |
Thanks for your feedback and for testing this! federated_identity_providers = {
github-mgfdev = {
attribute_condition = "attribute.repository_owner==\"mgfeller-dev\""
issuer = "github"
}
}
cicd_repositories = {
bootstrap = {
branch = null
identity_provider = "github-mgfdev"
name = "mgfeller-dev/fast-bootstrap"
type = "github"
}
resman = {
branch = null
identity_provider = "github-mgfdev"
name = "mgfeller-dev/fast-resman"
type = "github"
}
} |
Yours looks ok, mine is here for reference (with the extra repo and attributes we recently added): cicd_repositories = {
bootstrap = {
branch = "main"
identity_provider = "gitlab-ludomagno"
name = "ludomagno/fast-test"
type = "gitlab"
}
cicd = null
resman = {
branch = null
identity_provider = "github-ludomagno"
name = "ludomagno/fast-0-01-resman"
type = "github"
}
}
federated_identity_providers = {
github-ludomagno = {
attribute_condition = "attribute.repository_owner==\"ludomagno\""
issuer = "github"
custom_settings = null
}
gitlab-ludomagno = {
attribute_condition = "attribute.namespace_path==\"ludomagno\""
issuer = "gitlab"
custom_settings = null
}
} I would try aligning everything to our |
Thanks, I'll do that, it might take a couple of days though. It is quite a lot of work to update the repositories. It could be useful to have a section with recommendations about that as well as the versioning approach used in the docs - I might have overlooked it though. I'll create an issue for that. Do you consider the daily releases production ready? |
Yes, we don't have a good solution yet for updating the repos. If you have ideas, let's discuss them. And +1 on improving our documentation.
I would, but I also would expect the code to be maintained and evolved independently once cloned off master. This is how most of us work with our customers and how this entire repo is designed: we clone master and start integrating local customizations whenever we start a new project. Then sometimes new features we create to meet specific requirements are generalized and backported here, when it makes sense to have them in FAST or modules. The opposite (integrating new FAST features in existing customer code) is rarer and requires more work, and it typically happens at the module and not stage level. |
I have updated to daily-2022.06.24 and now it works 👍 What exactly did the trick I didn't have time to investigate. The workflow was the same. Thanks for your help, @ludoo! |
When running the GitHub workflow for 01-resman (fast-resman), the step "Copy Terraform output files" fails with
The code is based on v16.0.0.
The 00-bootstrap workflow works fine.
Unfortunately, I cannot figure out what is wrong.
Is it just my setup that might be causing this?
The text was updated successfully, but these errors were encountered: