Skip to content

Commit 5b9ca75

Browse files
Merge pull request #280 from JDTX0/master
Set `DeleteBeforeReplace` on some immutable resources
2 parents 57f2d87 + e4a4830 commit 5b9ca75

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

provider/resources.go

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -144,24 +144,29 @@ func Provider() tfbridge.ProviderInfo {
144144
"github_release": {Tok: makeResource(mainMod, "Release")},
145145
"github_repository": {Tok: makeResource(mainMod, "Repository")},
146146
"github_repository_collaborator": {Tok: makeResource(mainMod, "RepositoryCollaborator")},
147-
"github_repository_deploy_key": {Tok: makeResource(mainMod, "RepositoryDeployKey")},
148-
"github_repository_environment": {Tok: makeResource(mainMod, "RepositoryEnvironment")},
149-
"github_repository_file": {Tok: makeResource(mainMod, "RepositoryFile")},
150-
"github_repository_pull_request": {Tok: makeResource(mainMod, "RepositoryPullRequest")},
151-
"github_repository_project": {Tok: makeResource(mainMod, "RepositoryProject")},
152-
"github_repository_tag_protection": {Tok: makeResource(mainMod, "RepositoryTagProtection")},
153-
"github_repository_webhook": {Tok: makeResource(mainMod, "RepositoryWebhook")},
154-
"github_repository_milestone": {Tok: makeResource(mainMod, "RepositoryMilestone")},
155-
"github_repository_autolink_reference": {Tok: makeResource(mainMod, "RepositoryAutolinkReference")},
156-
"github_team": {Tok: makeResource(mainMod, "Team")},
157-
"github_team_members": {Tok: makeResource(mainMod, "TeamMembers")},
158-
"github_team_membership": {Tok: makeResource(mainMod, "TeamMembership")},
159-
"github_team_repository": {Tok: makeResource(mainMod, "TeamRepository")},
160-
"github_team_settings": {Tok: makeResource(mainMod, "TeamSettings")},
161-
"github_team_sync_group_mapping": {Tok: makeResource(mainMod, "TeamSyncGroupMapping")},
162-
"github_user_gpg_key": {Tok: makeResource(mainMod, "UserGpgKey")},
163-
"github_user_invitation_accepter": {Tok: makeResource(mainMod, "UserInvitationAccepter")},
164-
"github_user_ssh_key": {Tok: makeResource(mainMod, "UserSshKey")},
147+
"github_repository_deploy_key": {
148+
Tok: makeResource(mainMod, "RepositoryDeployKey"),
149+
DeleteBeforeReplace: true},
150+
"github_repository_environment": {Tok: makeResource(mainMod, "RepositoryEnvironment")},
151+
"github_repository_file": {Tok: makeResource(mainMod, "RepositoryFile")},
152+
"github_repository_pull_request": {Tok: makeResource(mainMod, "RepositoryPullRequest")},
153+
"github_repository_project": {Tok: makeResource(mainMod, "RepositoryProject")},
154+
"github_repository_tag_protection": {Tok: makeResource(mainMod, "RepositoryTagProtection")},
155+
"github_repository_webhook": {Tok: makeResource(mainMod, "RepositoryWebhook")},
156+
"github_repository_milestone": {Tok: makeResource(mainMod, "RepositoryMilestone")},
157+
"github_repository_autolink_reference": {
158+
Tok: makeResource(mainMod, "RepositoryAutolinkReference"),
159+
DeleteBeforeReplace: true,
160+
},
161+
"github_team": {Tok: makeResource(mainMod, "Team")},
162+
"github_team_members": {Tok: makeResource(mainMod, "TeamMembers")},
163+
"github_team_membership": {Tok: makeResource(mainMod, "TeamMembership")},
164+
"github_team_repository": {Tok: makeResource(mainMod, "TeamRepository")},
165+
"github_team_settings": {Tok: makeResource(mainMod, "TeamSettings")},
166+
"github_team_sync_group_mapping": {Tok: makeResource(mainMod, "TeamSyncGroupMapping")},
167+
"github_user_gpg_key": {Tok: makeResource(mainMod, "UserGpgKey")},
168+
"github_user_invitation_accepter": {Tok: makeResource(mainMod, "UserInvitationAccepter")},
169+
"github_user_ssh_key": {Tok: makeResource(mainMod, "UserSshKey")},
165170
},
166171
DataSources: map[string]*tfbridge.DataSourceInfo{
167172
"github_actions_public_key": {Tok: makeDataSource(mainMod, "getActionsPublicKey")},

0 commit comments

Comments
 (0)