Skip to content

Commit ff90b8c

Browse files
committed
Merge branch 'develop' of ssh.gitlab.aws.dev:genaiic-reusable-assets/engagement-artifacts/genaiic-idp-accelerator into develop
2 parents 5aa08c4 + 7da1381 commit ff90b8c

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

publish.py

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,48 +1858,6 @@ def print_outputs(self):
18581858
f" • Public Access: [yellow]{'Yes' if self.public else 'No'}[/yellow]"
18591859
)
18601860

1861-
# SAM deployment commands section
1862-
self.console.print("\n[bold cyan]SAM Deployment Commands:[/bold cyan]")
1863-
1864-
# Main template commands
1865-
self.console.print("\n• [cyan]Main Template:[/cyan]")
1866-
deploy_cmd = f"sam deploy --template-url {template_url} --stack-name IDP --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM --region {self.region}"
1867-
self.console.print(f" ◦ Deploy: [green]{deploy_cmd}[/green]")
1868-
1869-
update_cmd = f"sam deploy --template-url {template_url} --stack-name IDP --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM --region {self.region} --no-fail-on-empty-changeset"
1870-
self.console.print(f" ◦ Update: [green]{update_cmd}[/green]")
1871-
1872-
validate_cmd = f"aws cloudformation validate-template --template-url {template_url} --region {self.region}"
1873-
self.console.print(f" ◦ Validate: [green]{validate_cmd}[/green]")
1874-
1875-
# Pattern templates
1876-
self.console.print("\n• [cyan]Pattern Templates:[/cyan]")
1877-
pattern_templates = ["pattern-1", "pattern-2", "pattern-3"]
1878-
for pattern in pattern_templates:
1879-
pattern_url = f"https://s3.{self.region}.amazonaws.com/{self.bucket}/{self.prefix}/patterns/{pattern}/template.yaml"
1880-
self.console.print(f" ◦ [yellow]{pattern.title()}:[/yellow]")
1881-
self.console.print(
1882-
f" ▪ Deploy: [green]sam deploy --template-url {pattern_url} --stack-name IDP-{pattern.upper()} --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM --region {self.region}[/green]"
1883-
)
1884-
self.console.print(
1885-
f" ▪ Validate: [green]aws cloudformation validate-template --template-url {pattern_url} --region {self.region}[/green]"
1886-
)
1887-
1888-
# Option templates
1889-
self.console.print("\n• [cyan]Option Templates:[/cyan]")
1890-
option_templates = ["bda-lending-project", "bedrockkb"]
1891-
for option in option_templates:
1892-
option_url = f"https://s3.{self.region}.amazonaws.com/{self.bucket}/{self.prefix}/options/{option}/template.yaml"
1893-
self.console.print(
1894-
f" ◦ [yellow]{option.replace('-', ' ').title()}:[/yellow]"
1895-
)
1896-
self.console.print(
1897-
f" ▪ Deploy: [green]sam deploy --template-url {option_url} --stack-name IDP-{option.upper().replace('-', '_')} --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM --region {self.region}[/green]"
1898-
)
1899-
self.console.print(
1900-
f" ▪ Validate: [green]aws cloudformation validate-template --template-url {option_url} --region {self.region}[/green]"
1901-
)
1902-
19031861
# Display hyperlinks with complete URLs as the display text
19041862
self.console.print("\n[bold green]Deployment Outputs[/bold green]")
19051863

0 commit comments

Comments
 (0)