You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently universe has limited support for direct AWS API calls to create resources such as S3 buckets alpha.dagger.io/aws/s3. To continue this pattern universe would need to support 250 services which is a huge—no YUGE— undertaking. Should Dagger simply support IaC tools such as CloudFormation, Terraform, et al? Or should we duplicate what those tools do and provide CUE packages for each and every resource AWS provides?
This is further complicated by the lack of dagger down. Would users really want to use a tool to create hundreds of resources only to have that tool force them to delete those resources manually? CloudFormation and Terraform (among others) already support the full gamut of services and resources complete with automatic tear down.
Reacted by Guillaume de Rouville, robertcsapo and Tuan Anh Tran
My recommendation would be that unless there is a compelling reason to use direct API calls, like in the s3 Get/PutObject or ecr image push, we should rely on CloudFormation. That said, I don't see any reason we can't or shouldn't packages on top of CFN within universe.dagger.io. Having easy-to-use packages for those things makes a lot of sense to me.
For things that CloudFormation can't do such as s3 PutObject or s3 GetObject we can write those in aws/s3 , later we can add support for creating resources as wrappers to aws/cloudformation e.g.: aws/rds uses aws/cloudformation to deploy via best practices
My recommendation would be that unless there is a compelling reason to use direct API calls, like in the s3 Get/PutObject or ecr image push, we should rely on CloudFormation. That said, I don't see any reason we can't or shouldn't packages on top of CFN within universe.dagger.io. Having easy-to-use packages for those things makes a lot of sense to me.
Yeah I agree with that. To generalize:
If it makes Dagger more useful for a Universe package to exist, then it should exist
Each package should leverage the best available technology for its implementation. Criteria for “best” include reliability (does it work well?), security (will people get hacked because of it?), sustainability (will we regret choosing it next year?), and familiarity (will the target audience be comfortable with this choice?)
In doubt, go with the native best practices for the platform you’re targeting
In the case of AWS integrations, that probably means “use CloudFormation whenever possible”.
Activity
aluzzardi commentedon Jan 25, 2022
/cc @shykes @samalba
IMHO for packages such as
rdsetc that create resources, this is debatable.However for packages that deploy stuff (S3), I think it makes sense to have a dagger package, right?
s3,ecr,ecs, ...talentedmrjones commentedon Jan 25, 2022
s3,ecr, andecsare interesting cases:s3GetObjectandPutObjectCreateBucket? Why here and not with CloudFormation that has built-in tear down capabilities?ecr:loginsince we already have#Pushecs: I can't think of anything that can't be updated via CloudFormation/Terraform.@jlongtine ?
jlongtine commentedon Jan 25, 2022
My recommendation would be that unless there is a compelling reason to use direct API calls, like in the s3
Get/PutObjectorecrimage push, we should rely onCloudFormation. That said, I don't see any reason we can't or shouldn't packages on top of CFN withinuniverse.dagger.io. Having easy-to-use packages for those things makes a lot of sense to me.talentedmrjones commentedon Jan 26, 2022
To summarize:
For things that CloudFormation can't do such as
s3 PutObjectors3 GetObjectwe can write those inaws/s3, later we can add support for creating resources as wrappers toaws/cloudformatione.g.:aws/rdsusesaws/cloudformationto deploy via best practicesshykes commentedon Jan 26, 2022
Yeah I agree with that. To generalize:
In the case of AWS integrations, that probably means “use CloudFormation whenever possible”.
talentedmrjones commentedon Jan 26, 2022
Closing this on these wise words: "use CloudFormation whenever possible"