Skip to content

Commit

Permalink
address pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrconley committed May 31, 2024
1 parent 5b261ef commit c455a41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
5 changes: 1 addition & 4 deletions src/mappings/implicit-dependency-aspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ import { findTokens } from "cdktf/lib/tokens/private/resolve.js";
import { IConstruct } from "constructs";

export class ImplicitDependencyAspect implements IAspect {
public readonly target: TerraformResource;
public readonly dependables: string[];

constructor(
target: TerraformResource,
public readonly target: TerraformResource,
public readonly implicitDependencies: TerraformResource[],
) {
this.target = target;
this.implicitDependencies = implicitDependencies;
this.dependables = this.implicitDependencies.map(dependable);
}

Expand Down
11 changes: 1 addition & 10 deletions src/mappings/services/iam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,7 @@ export function registerIamMappings() {
});

ImplicitDependencyAspect.of(role, [eventualConsistentWait, ...managedPolicies || []]);
// if (managedPolicies?.length) {
// const dataSource = new DataAwsIamRole(scope, `${id}-data`, {
// name: role.name,
// dependsOn: managedPolicies,
// });
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// (role as any)[LAST_MANAGED_POLICY_DATA_SYMBOL] = dataSource;
// }
//
// Aspects.of(scope).add(new EventualConsistencyWorkaroundAspect(role));

return role;
},
attributes: {
Expand Down

0 comments on commit c455a41

Please sign in to comment.